OAuth 2.0 in C++ Builder XE2 - c++

How to implement OAuth 2.0 authorization in C++ Builder XE2? Starting with version XE 5, there was a library REST Client Library.

Embarcadero's REST framework has a TOAuth2Authenticator class.
The Accessing Google Tasks API example in Embarcadero's RESTDemo Sample demonstrates the use of OAuth 2.
Update: sorry, I didn't read the question clearly enough. There is no built-in OAuth support in XE2. You will have to use a third-party library, or write your own implementation.

Related

Calling Microsoft Graph from Google Appengine Python

I need to call the Microsoft Graph from a Google Appengine Python application, this requires oAuth2 authentication.
Google provide the Google API Client Libraries for calling their own REST api's (such as Calendar / Drive / Youtube etc) - is it possible to use the library to call other non Google REST API's such as Microsoft Graph?
If not has anyone used another library to do so from Appengine Python. You can not use the Microsoft supplied python SDK as this requires python version 3+ and Appengine only supports 2.7.
Thanks in advance,
Ian
The authorization token you receive from Google will only work with their APIs. You'll need a separate token for use with Graph. For this you can use ADAL library.
Since you need to stick with 2.7, you'll need issue REST directly. The existing SDK (as you noted) requires py3. You may want to take a look at restclient for this. Its been a while since I've had to use this lib but I recall it really simplified calling REST endpoints.

Call REST Service from Win32 application

I have an Win32 application which runs on the Windows server (2003 & later). My application has to call a REST service to POST some JSON data.
How can I proceed with implementation? Which library or SDK should I use to call REST service from C++ application.
Please suggest.
Thanks in advance.
I'd suggest using modern C++11 Casablanca REST API developed by Microsoft. This API is now included into Visual Studio installation package. You can also use WinHTTP API which is kind of legacy stuff. There is also MFC/ATL implementation called ATL Server that does include HTTP Client classes.

Rally Webservice v2.0 via SDK 1.32?

My question is concerning the Rally javascript SDK 1.32.
My line of thinking is this: SDK 1.32 seems to only return objects with APIMajorVersion 1 and MinorVersion 32, yet there exist versions from 1.33 to 1.43 as well (though they are all now deprecated as well). It makes sense to me that since SDK 2.0 must return objects from version 2.0, that there should be a way to specify what webservice version to return objects from.
My question is this: am I right that there is a way to obtain Rally objects from webservice v2.0 from SDK 1.32? If so, how would I do that?
I'm not just asking this out of laziness-- I am on the tail-end of an internship and would not necessarily have time to learn the new SDK and reimplement all that I have done on SDK 1.32.
Thanks for any responses!
This answer:
1.39 Rally API Version source for Java Script
shows how to utilize AppSDK 1.x using different versions of WSAPI.
However, AppSDK 1.x utilizes the adhoc.js Webservices endpoint for querying. This endpoint has been deprecated in Webservices 2.0. As a result, AppSDK 1.x will not work against Rally Webservices 2.0.
I'd recommend using AppSDK 2rc1, which is built on Webservices 2.0.

Blackberry what SDK and language are used

I am new in Blackberry. Can anyone help me out for following queries?
Which SDK is used in Blackberry?
In what language are Blackberry applications developed?
Can we call webservices through Blackberry applications?
Blackberry applications are written in Java. They support Java ME as well as some additional blackberry specific APIs. Check out http://na.blackberry.com/eng/developers/javaappdev/overview.jsp
As for calling a web service, yes you can do that as well. Check out the Rapid Application development tutorial at: http://na.blackberry.com/eng/developers/rapidappdev/
As heavyd said you can use the Rapid Application Development for accessing web services.
I've used the Visual Studio plugin before but this doesn't allow you as much access to the API as using the standard JDE plugin for Eclipse or the Blackberrys Java Development Environment (at least when I used it). It all depends on what you want to do, whether it's whip up a quick app or create a fully customised sweet looking application that'll take a little longer.
If you don't decide to go down the RAD route you can use a 3rd party library like KSOAP2, or, the way I do it, is use the Sun Wireless Toolkit (WTK) to create Stubs for you're web service methods which you can then call in your application. I've used this method for a .NET web service and it's pretty straightforward.

Is there any standard to consume a webservice inside of native C++?

I am looking for resources to show me how I can consume web services inside native C++ . Are there any popular libraries I can use?
TIA
Andrew
It really depends on what webservice architecture you are talking about... For XML-RPC IBM has a nice article showcasing XMLRPC++, for SOAP there is e.g. gSOAP or WSO2 WSF/C++, ...
There are the Axis2/C libraries, which, while C based rather than C++, are still easily employable - when I was working on Apache Tuscany, we used Axis2/C for our C++ Web Service bindings.
From the Axis2/C front page:
"Apache Axis2/C supports SOAP 1.1 and SOAP 1.2, as well as REST style of Webservices. A single service could be exposed both as a SOAP style as well as a REST style service simultaneously. It also has built in MTOM support, that can be used to exchange binary data."