Find your content:

Search form

You are here

how do i link a Fuel SDK client to an account on mc.exacttarget.com?

 
Share

I created an account on code@exacttarget that provides a client id and secret, but i don't get how i can use that to then access an account on mc.exacttarget.com.

I'm trying to use the Fuel SDK (ruby gem) to perform a triggered send that has been defined on the mc.exacttarget.com account.

Here's the relevant code

client = FuelSDK::Client.new(client: { 'id': 'my id', 'secret': 'my secret' }
triggered_send = FuelSDK::TriggeredSend.new
triggered_send.authStub = client
triggered_send.props = ["CustomerKey", "Name", "TriggeredSendStatus"]
triggered_send.filter = {'Property' => 'CustomerKey','SimpleOperator' => 'equals','Value' => 'my customer key'}
triggered_send.get

what am i missing?


Attribution to: hubert

Possible Suggestion/Solution #1

Assuming you have created a server-to-server app in App Center on Code@ExactTarget, you can get the client ID and client secret by from the app page in App Center. Then, you put the client ID in your code where it says 'my id' and the client secret where it says 'my secret'.


Attribution to: Ian Murdock
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/33534

My Block Status

My Block Content