require 'httparty'
class Salesforce
include HTTParty
base_uri 'https://test.salesforce.com'
def post
options = { :query => {:grant_type => 'password', :client_id => '<your client ID>',
:client_secret => '<your secret>', :username => "<your user name>",
:password => '<your password><your security token>'}}
response = self.class.post('//services/oauth2/token', options)
puts response.inspect
end
end
Salesforce.new.post
--
You received this message because you are subscribed to the Google Groups "ActiveSalesforce" group.
To view this discussion on the web visit https://groups.google.com/d/msg/activesalesforce/-/z-TwHAeTyNoJ.
To post to this group, send email to activesa...@googlegroups.com.
To unsubscribe from this group, send email to activesalesfor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activesalesforce?hl=en.
Scott,Put a breakpoint, and see if the refresh token has changed due to the refresh?-Ray
To post to this group, send email to activesalesforce@googlegroups.com.
To unsubscribe from this group, send email to activesalesforce+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activesalesforce?hl=en.
--
You received this message because you are subscribed to the Google Groups "ActiveSalesforce" group.
To post to this group, send email to activesalesforce@googlegroups.com.
To unsubscribe from this group, send email to activesalesforce+unsubscribe@googlegroups.com.
--
Scott Smith
http://twitter.com/_ofd (OldFartDeveloper)
--
You received this message because you are subscribed to the Google Groups "ActiveSalesforce" group.
To post to this group, send email to activesalesforce@googlegroups.com.
To unsubscribe from this group, send email to activesalesforce+unsubscribe@googlegroups.com.