I want to build a Salesforce Marketing Cloud HubExchange app. The app will schedule a task periodically to process recent event tracking data for each user in the installed base.
How do I access event data for a specific user? What tokens or FuelSDK::Client parameters (I am using the Ruby FuelSDK, ideally) do I need to set?
I think I need to refresh the token from the JWT, but the FuelSDK::Client seems to want a JWT, not an oauth token.
Is there a code example or description for this process?
Relevant links:
- https://github.com/ExactTarget/FuelSDK-Ruby
- https://code.exacttarget.com/app-development/marketing-cloud-apps/single-sign-on.html
- Refresh Token request returning Unauthorized
- ExactTarget ClientID and ClientSecret for HubExchange App
- How do I contextualize the Fuel SDK to retrieve event data for a specific user?