search for: api_url

Displaying 2 results from an estimated 2 matches for "api_url".

2011 Oct 07
1
403 Error Dont know whats wrong.
...projects/sms_app My code in the module looks as follows - before adding this code i had a simple enter number and enter message text boxes with the usual edit/add/delete options. require ''rubygems'' require ''rest_client'' class SMS < ActiveRecord::Base API_URL = ''http://services.xxxx.com/SMS'' API_KEY = ''000000000'' RestClient.post ''API_URL/TXT/XXXX/07996750812/wakeup/API_KEY'', :number => ''079945460812'', :nested => { :message => ''working from inside'...
2007 Nov 08
0
Models for external REST services
...rs for the other mobile_field # end snippet #============================ On the side of the controlloer I have no idea how to start, this is what I think it should look like, def do_sign_in @sign_in_form #this should come from the form in the view, I have no idea how to get this object api_url = "www.example.com/some_api.php" response = some_object.do_post (api_url, :params =>{ "api_key" => @key, "param1" => @sign_in_form.field1, "param2" => @sign_in_form.field2, } ) # after this we should go to a do_sign_in.rjs and do all the ajax...