Questions tagged [curl]

cURL is a computer software project providing a library and command-line tool for transferring data using various protocols.

Filter by
Sorted by
Tagged with
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 ...
Kirk B's user avatar
  • 115
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, ...
Danryl Tigol Carpio's user avatar
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 ...
Danryl Tigol Carpio's user avatar
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 ...
Ray Dehler's user avatar
  • 1,723
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....
Rohit's user avatar
  • 733
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 ...
SSK's user avatar
  • 361
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....
raphnguyen's user avatar
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 ...
smohyee's user avatar
  • 3,752
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 ...
Chris's user avatar
  • 287
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 ...
fourq's user avatar
  • 2,101
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' ...
DevCRMconsult's user avatar
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 ...
Aisha Kigongo's user avatar
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={$...
Chetan's user avatar
  • 31
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 ...
Tom Reed's user avatar
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 ...
MnZ's user avatar
  • 3,152
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
Rajendra Singh Nagar's user avatar
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-...
DarRay's user avatar
  • 239
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 ...
akarnid's user avatar
  • 1,955
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 ...
ehime's user avatar
  • 530
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 ...
Adam's user avatar
  • 4,328

1
2