iPhone communicating with Ruby on Rails web site for login/logout - iphone

I'm developing an iPhone app which allows users to login to a web service by using the token and api
http://localhost:3000/api/v1/tokens.json?email=tok_apple2009#hotmail.co.uk&password=111111
http://localhost:3000/api/test.json?auth_token=h8uTVFseoMiLvRquK4Vt
However I'm having trouble in this part, could anyone could please help me?
Thanks

You can use AFNetworking(https://github.com/AFNetworking/AFNetworking) framework for communicating with webservices.

Related

Iphone Application with Symfony 1.4

I'm building a simple iPhone app that synchronizes to a webservice served by Symfony 1.4. This app requires the user to be logged in.
My question is, how can the user log in Symfony from the iPhone app? And how can I keep the session opened through the next petitions? Is this secure?
Chapter 15 of the Practical Symfony book talks about webservices, but I can't find any guide about sessions.
Thanks in advance
You can use SOAP web service also. But this is little complex. You can send the file attached to XForm and Post to the service
Detailed implementation of SOAP in PHP
http://www.vankouteren.eu/blog/2009/03/simple-php-soap-example/
You can build a rest service for symfony modules. You can get login through REST service.
Your example service will be like this
www.example.com?username=user&password=pass

Advice on replacing FacebookAgent (REST) authentication with Facebook Connect SDK on iOS

I inherited an iOS app that is currently using an authentication library called FacebookAgent. If unaware, this uses the soon-to-be-or-is-now-deprecated Facebook REST authentication system.
I'll be replacing this with the Facebook Connect SDK. Does anyone know if it's possible to easily switch from the FacebookAgent REST authentication system to the Facebook Connect SDK without having to back out all of the FacebookAgent methods?
Thanks in advance for any advice.

Barebones Facebook Connection with flashbuilder 4.5 (mobile app)

I am looking for a barebones facebook connection from pure actionscript to use in a mobile. Does anyone know of any examples. Been having a hard time finding what I want in Google
Thanks!
You cant connect to facebook with only actionscript - flash does not implement OAuth which you need to get a valid access token.
You have to either get an access token through PHP, or Javascript.
If you are making a mobile web-app you can check out
http://blog.yoz.sk/2010/04/facebook-now-with-oauth-and-open-graph/
Jozef Chúťka put together a great walkthrough and classes for AS3 and facebook.
So you can make a web app or use a web view in AIR to handle your authentication.

iPhone SDK - gdata oauth

I am about to build an application in iPhone which uses gmail. I am new to web application. I know a bit how to authenticate using OAuth and the process of OAuth. But I dont know where to find the OAuth libraries for gmail. Please, I need a guidance to get the OAuth for gmail. Thanks in advance.
Check the following link:
http://code.google.com/p/gtm-oauth/

can web2py support RESTful api calls? if so any pointers on how to build one?I

I want to configure a simple webapplication to support an iphone app to connect with it in RESTFUL ways. Initially have a user login session enabled from the iphone to the web app. I'd like the iphone app to send a NSURL call to the webapp, with user and password and have the webapp respond if the suer exists or not. Pretty simple. And I want to do it with web2py. Is this possible? Any clues?
I think you should post it to web2py group on google groups.
web2py#googlegroups.com
I know this question is a bit old now, but Massimo recently posted a video demonstrating a new experimental RESTful API for web2py. See also the Google groups posting "video about new RESTful APIs" .