Questions tagged [curl]
cURL is a computer software project providing a library and command-line tool for transferring data using various protocols.
70
questions
0
votes
1
answer
890
views
Problem getting AUTH Token
I'm trying to get an Auth Token (using PHP) and having trouble getting back the authorization code so I can make the next call and get the Auth Token. I set up a connected APP in the console and have ...
1
vote
0
answers
984
views
Call Salesforce Apex Rest Post Method using PHP
The aim of this code is to call post method apex rest using php curl. But I am getting an error of response [{"message":"Unexpected parameter encountered during deserialization: Last Name at [line:1, ...
0
votes
1
answer
647
views
Having Trouble with Force.com REST API oAuth2 Authentication
I am experimenting with Pat_Patterson's "Interact with the Force.com REST API from PHP". I am using PHP Version 5.6.3 , and I already registered my app via Setup->Create->Apps->Connected Apps. I setup ...
2
votes
1
answer
2k
views
OAuth Password Authentication for curl
I've seen this question on here numerous times, but none of the solutions I've found have helped.
I'm trying to authenticate via curl.
I set up a connected App, and retrieved the Client Id and ...
4
votes
1
answer
2k
views
Access token generation through curl
Org: Developer org.
I faced a strange issue. I was generating the access token by providing client id, client secret, username and password.
I used 2 following cURL commands :
curl https://login....
2
votes
2
answers
15k
views
Obtain enterprise WSDL via curl
I am trying to obtain enterprise WSDL by accessing
https://cs15.salesforce.com/soap/wsdl.jsp?type=* URL via curl.
For this, I have obtained access token through OAUTH2 method via the following curl ...
2
votes
1
answer
966
views
Using curl to download zip reports
I am attempting to use curl (or any other viable alternative) to download a zip report from SalesForce, but I seem to be unable to do so. I am using syntax:
curl -o my_file.zip 'https://login....
6
votes
1
answer
7k
views
Novice Question: making a cURL callout from Apex to a 3rd party app?
I'm only familiar with REST and SOAP as API standards, and I'm a novice in general, so pardon my lack of understanding of most of these concepts.
I have a web form on a third party heroku app that I ...
2
votes
3
answers
1k
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
1
answer
1k
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
1
answer
1k
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' => '[email protected]',
'contactId' ...
3
votes
2
answers
32k
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 ...
3
votes
2
answers
6k
views
Sending data from PHP to Salesforce using CURL
I have to send the data from PHP to Salesforce and save the data in Salesforce. I have tried with the following code:
$curlurl = "https://www.mysalesforce.com/services/apexrest/Contact?email={$...
1
vote
2
answers
657
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
...
3
votes
2
answers
15k
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
1
answer
5k
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
9
votes
1
answer
33k
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 "Content-...
1
vote
2
answers
3k
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
1
answer
2k
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 ...
8
votes
1
answer
7k
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 ...