Best Software for 2025 is now live!

How to use Salesforce Marketing Cloud API to connect with my SQL server?

I need to use C# to do an HTTP POST request to acquire an access token, but I have no idea how to do it. is a customer relationship management (CRM) platform for marketers that allows them to create and manage marketing relationships and campaigns with customers. I need to run this sample code in C#: POST https://auth.exacttargetapis.com/v1/requestToken Content-Type: application/json { "clientId": "gyjzvytv7ukqtfn3x2qdyfsn", "clientSecret": "************" } I am using SSIS 2008r2, I want to write c# code to make an API call to the exact Target API to connect to the SQL server database. Because I want to pull data from the SQL server to the marketing cloud. I didn't find any article about using SSIS to connect Marketing cloud.....the salesforce marketing cloud rest API or FuelSDK looks like it only supports .net 4 or higher.
1 comment
Looks like you’re not logged in.
Users need to be logged in to answer questions
Log In
steve d.
SD
Software Developer
0
To connect with Salesforce Marketing Cloud API using C# and acquire an access token through an HTTP POST request, you can follow these steps: -Set up your C# project and add the required dependencies. -Write the C# code to make the API call. -Use the HttpClient class to send an HTTP POST request to the token request endpoint (https://auth.exacttargetapis.com/v1/requestToken). -Set the request body with your client ID and client secret in JSON format. -Add the Content-Type header to specify the request body as JSON. -Await the response from the API call. -If the request is successful (status code 200), retrieve the response content using ReadAsStringAsync(). -Process the response content as needed. -Handle any errors if the request was not successful (status code other than 200). -Remember to replace the placeholder values with your actual client ID and client secret. This code snippet provides a basic structure for making an API call to Salesforce Marketing Cloud API and obtaining an access token. You can modify and expand upon it to suit your specific requirements for pulling data from your SQL server to the Marketing Cloud. Refer : https://www.igmguru.com/cyber-security/cyber-security-course/
Looks like you’re not logged in.
Users need to be logged in to write comments
Log In
Reply