The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
35 views

How to use the REST API to get array from the Opportunity Object in JSON format from the Opportunity object using SOQL?

I'd just like to get an array of the opportunity data within Salesforce Visualforce so that I can manipulate it in Javascript. Below is the query that I'd like to use to pull in the array: select ...
2
votes
1answer
159 views

Why isn't curl getting the session id?

curl -v https://test.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=" -d "client_secret=" -d "username=" -d "password=" I've tried this with instance name instead of test ...
3
votes
1answer
108 views

ExactTarget REST API - Getting issues with /contacts/ and /campaigns/

I'm new with ExactTarget APIs, I'm using Php curl to request the ExactTarget REST API. Basically, I tried to create a contact: $array = array( 'contactKey' => 'test@test.fr', 'contactId' ...
0
votes
0answers
45 views

Curl Error with Salesforce

I'm getting a curl error with Salesforce when I completed the form. So, I would like to know if you any clues to help me. My Network System admin told me that the communication between the web-to-lead ...
3
votes
2answers
733 views

How to request rest api after getting access token. php & curl

I am able to authenticate with salesforce and receive a token using php & curl, below. However my next step is to use the token id to query salesforce (e.g objects) and i am not getting anything ...
2
votes
1answer
418 views

Sending data from PHP to Salesforce using CURL

I am New BEE to this i have got stuck so seriously I have to send the data from php to salesforce and save the data in the sales force i have tried with the following code ...
2
votes
1answer
84 views

Rendering Email Thumbnail in Hub

Is it possible to make a cURL POST for an email thumbnail preview using the Authorization: Bearer header to a URL like this: https://www.exacttargetapis.com/guide/v1/emails/12345/EmailThumbnail ...
0
votes
1answer
2k views

How to Session ID for a curl request?

I'm trying to call and test CURL function for REST curl -H "Authorization: Bearer sessionId" "https://ap1.salesforce.com/services/apexrest/Account/0019000000xxxxH" I tried curling with no session ...
1
vote
1answer
759 views

Pretty Print cURL output (both JSON & XML) in Dos

Is it possible to pretty print cURL output (both JSON & XML) in Dos. I tried to search this, but options are available for Unix types systems only. Thanks for your answers. RSN
2
votes
1answer
4k views

What is the use of setting OAuth Callback URL as https://login.salesforce.com/services/oauth2/success?

I'm using Salesforce developer account and trying to obtain OAuth access token using curl and it returns 500 Server Error giving the message specified in [1]. Used curl command is curl -v -H ...
1
vote
2answers
2k views

Having problems with authenticating to my custom REST class

I keep getting 401 Not Authorized errors when I call my resource with a REST test tool like the Advanced REST client. I'm supplying an access token taken from a curl call to the salesforce login ...
5
votes
1answer
847 views

Bypassing RemoteAccessAuthorizationPage when using a remote application?

Hey guys I had a dream last night about a huge issue in our ability to aggregate data. After setting up a remote app, using PHP to "CURL" into login.salesforce.com for authorization, we hit the ...
6
votes
1answer
1k views

Error using Session Id auth with cURL following REST documentation

Problem: trying to authenticate to a dev org using Session Id authentication and cURL fails when following the REST API Dev doc. The example in the doc provides the following, which fails (Quick Start ...