Is there an SDK I can use for the data insertion API? | Community
Skip to main content
New Participant
October 8, 2020
Solved

Is there an SDK I can use for the data insertion API?

  • October 8, 2020
  • 2 replies
  • 1796 views

I've been given a CURL request that builds on this API... https://helpx.adobe.com/uk/analytics/kb/data-insertion-api-post-method-adobe-analytics.html.

And at the moment I am building this request manually in my project firefly action.

I was wondering if there's an SDK I can install using NPM that will provide some convenience methods around this instead of building the request manually?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by duynguyen_adobe

Hi @oliverf82757722 , the Firefly SDK for Adobe Analytics only supports the API 2.0.

Unfortunately the Data Insertion API is only available in API 1.4, not 2.0, according to: https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/migration-guide.md.

Hence, you would need to make the HTTP requests using `node-fetch`.

2 replies

Employee
October 10, 2020

You can use this lib.

https://www.npmjs.com/package/adobe-analytics-di

 

Its a little dated but it works.

Employee
October 10, 2020
Maintainer of the lib is a slacker
duynguyen_adobeAccepted solution
Employee
October 8, 2020

Hi @oliverf82757722 , the Firefly SDK for Adobe Analytics only supports the API 2.0.

Unfortunately the Data Insertion API is only available in API 1.4, not 2.0, according to: https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/migration-guide.md.

Hence, you would need to make the HTTP requests using `node-fetch`.

New Participant
October 8, 2020
Thanks for the update. I'll continue on with the node-fetch approach. Thanks