iPhone Google Docs API issue - iphone

I am working on one sample app in which I need to use Google Docs API. I have found GoogleDocs demo app. But I am facing one authentication issue in login process. I am getting following error.
<GDataServiceGoogleDocs: 0x1e4f00> objectFetcher:<GDataHTTPFetcher: 0x1eb930> failedWithStatus:403 data:<errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>ServiceForbiddenException</code><internalReason>403.4 SSL required</internalReason></error></errors>
and so I am not getting access token from Google.
I did some research regarding but not getting success.

If you are using http in your urls, please change to https. In general all
your requests to the APIs should use https.
Please refer to this link.

Based on "SSL required": did you try the https: schema in your query URL?

Related

Magento Implementing token based authentication

I saw some documentation here to create token based authentication.
http://devdocs.magento.com/guides/v1.0/get-started/authentication/gs-authentication-token.html
But i cant make it work. The urls in this example are not working.
I am new to magento. Please help in integrating token authentication, because i have to integrate it with mobile app.
Which Magento version are you using? I ran into the same problem until I found out that the token based authentication is available for Magento 2 which is still in Beta while I'm posting this. I'm currently using Magento 1.9.1.1 hence the 404 ;)
There is no direct way to use token based authentication on the Magento 1.x version. You need to write this functionality to you for your own. You can also follow this article for more details.
https://www.ipragmatech.com/magento-token-base-rest-api-for-authentication-and-authorization

How to check in using access token in Foursquare

I would like to integrate the "Foursquare check in" feature into my iOS application. I am able to fetch the Foursquare access token using UIWebView. But i am struggling to implement check in feature. I did searched lot in Google to implement check in feature using access token. I found the following tutorial Foursquare but this one didn't helped me to integrate in xcode
Please help me, in case you know how to implement check in feature in Foursqure. It would be really helpful
Thanks in anticipation!
Once you have an access token, the hard part is done! You can use the access token in either a call in a client library or you can make a direct HTTP POST request to our checkins/add endpoint. The URI should look like, before adding any other optional parameters:
https://api.foursquare.com/v2/checkins/add?oauth_token=ACCESS_TOKEN&venueId=VENUE_ID&v=20130822
Note that Foursquare also released native auth for iOS, which can make getting the access token even easier without having to use a UIWebView.
try this one:
Git Hub Demo Code

Photobucket IOS integration

could anyone assist in authenticating to photobucket and uploading an image from and iPhone app? I am currently configured with many networks but I can't really find good documentation for the photobucket process. I guess the process is only authenticate and upload using customer key then username and password of the user?
Any help here would be amazing! Thanks in advance!
Jim
Jim, the Photobucket (PB) process for authenticating is modified OAUTH. If you start looking at OAUTH examples you will find that you can authenticate on PB by simply converting a sample over to PB. e.g.: There's an OAuth starter kit set up for LinkedIN by Lee WHitney on Github courtesy of Kirsten Jones. Register an app with PB, get your keys and plug in the keys & correct PB URLs and you will be working. The URLS you need are:-
requestTokenURLString = #"http://api.photobucket.com/login/request";
accessTokenURLString = #"http://api.photobucket.com/login/access";
userLoginURLString = #"http://photobucket.com/apilogin/login";
This will get you logged in but there's a lot more to come. PB have a code page and there is an Objective-C library including a modified OAUTH but it's missing docs so you need to work it out by studying the code. Bitbucket Photobucket code for objective-c
The issue I have is to do with their usage of sub domains and trying to get OAUTH to work with that.
UPDATE: Solved: I have at last worked out how to get a part of the provided API working in my own Xcode project. Basically I added the special Oauth files which enable the requests to be set up correctly to get round the subdomain stuff.
eg: OAuthASIHTTPRequest etc
I'm now getting full album info.
Official documentation for Photobucket API is available at: http://pic.pbsrc.com/dev_help/WebHelpPublic/PhotobucketPublicHelp.htm . You can find examples for login and media uploading.
Client libraries for Photobucket API are at: https://bitbucket.org/photobucket/api/wiki/Client_Libraries . There is a Objective-C one, like SundialSoft mentioned in answer.

problem in using Sharepoint webservice in iphone

Currently getting this following error:
You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.
i cant able to get the response from the share point server.
Can any one help me in this.
Thanks in advance
You might want to check with Apple's developer forums but at some recent point they introduced a bug into their development toolchain that prevented authentication against NTLM protected resources.

Setting up Facebook SASL authentication in XMPPFramework

Any clue on how to setup the facebook SASL authentication in XMPPFramework for iPhone.
I dont need to get the accesstoken. I have the accesstoken already. So I can use it.
Update: I started implementing this documented way But got stuck up with this stack overflow issue
XMPPFramework was recently updated to work with the Facebook OAuth2 changes. Instructions explaining how to configure the integration are in the project wiki and there is now a sample Facebook test application.