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
474 views

Convert cUrl to rest in Apex?

I have a curl request which I have to convert to a rest request in Apex. This is the request: curl https://api.stripe.com/v1/subscriptions \ -u sk_test_4eC39HqLyjWDarjtT1zdp7dc: \ -d customer=...
Jayesh Babu's user avatar
0 votes
2 answers
509 views

How to create a business account with the REST API

I can create a person account using the REST API, but I can't seem to find any documentation on how to create a business account. I imaging that the post items you send need to include something extra ...
Zach Manning's user avatar
0 votes
1 answer
252 views

SFMC API call to 3rd party when unsubscribing

We're using a 3rd party for a refer a friend service that also has a subscriber status. We'd like to link a user's unsubscribe to the 3rd party service when a user unsubscribes through the profile ...
justinme's user avatar
0 votes
2 answers
644 views

Trying to run a sql activity thourgh a curl SOAP request - SoapAction incorrect?

If I manual trigger/run the activity the destination Data Extension is being filled correctly. However when try a SOAP request using curl, nothing happens... I've tried 2 different SoapAction values. ...
mario ruiz's user avatar
0 votes
1 answer
312 views

Posting Jenkins build status to SFDC via rest API chatter

We are trying to explore how we can post Jenkins build status to SFDC via Rest API Chatter. Tried below steps Generated Access Token curl -X POST --form client_id=...
devopsnaresh's user avatar
0 votes
1 answer
2k views

Convert cURL to Salesforce APEX rest api

Hoping someone could help with this little problem I am having, I have a cURL that works just fine, but what I need is an Salesforce APEX / Rest API / HttpRequest instead. Here is my cURL: curl -X ...
Jerry Clifft's user avatar
0 votes
1 answer
911 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
0 votes
0 answers
97 views

OAuth 2.0 Refresh Token Flow for Renewed Sessions

I'm trying to get access token as described here -> https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_refresh_token_flow.htm&type=5 Everything works fine as long as I send ...
Tom's user avatar
  • 101
0 votes
2 answers
2k views

{"error":"unsupported_grant_type","error_description":"grant type not supported"} on executing curl command

I know this must have been posted here and I've tried the solutions I've searched across the web but I am still getting the error {"error":"unsupported_grant_type","...
Athira Venugopal Aphidas's user avatar
0 votes
0 answers
1k views

Curl - JSON_PARSER_ERROR Unexpected character

getting the following error using curl with salesforce, I'm trying to update a record. Have I formatted this wrong or am I missing something Many thanks for your help curl https://##url##/services/...
Simon Webb's user avatar
0 votes
0 answers
736 views

connection to salesforce with curl, no response

As a followup of windows curl authentication error, i'm doing the tutorial on https://trailhead.salesforce.com/content/learn/modules/apex_integration_services/apex_integration_webservices?trail_id=...
Luis Aguiar's user avatar
0 votes
1 answer
844 views

"Session expired or invalid' when I send.a get request for data

I am a front-end dev trying to hook a salesforce api to one of my apps. For practice (yesterday) I created a new connected app and used the below to fetch some data and it worked curl https://tahina-...
Kisho's user avatar
  • 113
0 votes
1 answer
639 views

Token request sends a redirect instead of token or error

I have trial Enterprise account and I can successfully obtain a token with the below curl. curl -v https://eu31.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=...
Nipun Thathsara's user avatar
0 votes
0 answers
100 views

Update a Record's Fields in Production Org from External Website w/o Salesforce Login

I have a form on my WordPress website that collects additional information from customers. I want this information added to an existing record of MyCustomObject. To do this, I will need to make a ...
Matthew's user avatar
  • 133
0 votes
1 answer
156 views

Populate Primary Point of Contact Field ( Business Account ) from Contact Object

I am using PHP cURL to populate data in the Customer, and the Account Object. I am working to link the two objects together via Contact Role. In which object field do I need to assign a value to in ...
Zach Manning's user avatar
0 votes
1 answer
6k views

Authorization PHP Curl returns Login page instead of token

I am trying to use PHP curl to authenticate my app's user, but instead of authenticating with OAuth it returns the actual html login form as a response. Why? I don't want to redirect the user over and ...
Zach Manning's user avatar
0 votes
1 answer
927 views

Username/password authentication curl attempt failture

I'm trying to get an access token using following curl: curl --data grant_type=password&client_id=Y&client_secret=Z&username=A&password=B+C https://login.salesforce.com/services/...
jones's user avatar
  • 101
0 votes
1 answer
374 views

Where to find an example of using cURL, PHP, and a pick list value to select another field?

Can someone give an example, or a link to an example, of using PHP and cURL to select a column's value based on a pick list value?
Guybrush Threepwood's user avatar
0 votes
1 answer
654 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
0 votes
3 answers
2k views

Calling REST APIs from PHP with curl

I've successfully received an access token thru the API, but no matter what I do I keep getting this "INVALID_SESSION_ID". Does this mean the access key is invalid? I've tried lots of suggestions from ...
Mike Lacourse's user avatar
-1 votes
1 answer
6k views

Salesforce authentication failure

I am trying to POST to the API Endpoint https://login.salesforce.com/services/oauth2/token as shown in the screenshot this is the first step towards authentication which is failing and giving an error ...
Tazeen Fatima Khan's user avatar

1
2