Not able to hit Twitter API through POSTMAN

Sachin 21 Reputation points
2021-06-19T11:57:41.92+00:00

Hello,

I was trying to hit Twitter API to retrieve data and later store in Azure storage for further processing. Before calling the API from ADF, I was trying it from POSTMAN but I am stuck at an error.

I have created a project in Twitter and then created an app which is associated with the twitter project. Retrieved the Key, Secret and Bearer Token. I hit the below endpoint with Bearer token and got the error

endpoint : https://api.twitter.com/2/tweets?ids=1261326399320715264,1278347468690915330
Error: When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.

Then I hot the same endpoint using OAuth 1.0 with Consumer Key, Consumer Secret, Access Token and Access Secret and getting the below error

{
"title": "Unauthorized",
"type": "about:blank",
"status": 401,
"detail": "Unauthorized"
}

I do not understand what I am missing there. Can someone please help on this?

Thanks

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,525 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2021-06-21T12:38:43.667+00:00

    Hello @Sachin ,

    Thank you for posting your query on Microsoft Q&A platform.

    Query seems on Twitter API rather than on Azure Data Factory. Below are the details which may help you in this regards.

    You can explore below links to explore about LinkedIn APIs.

    With respect to ADF, if you would like to make any API call use Web activity or webhook activity.

    If you would like to create a dataset which get data from API then use HTTP connector or REST connector.

    Hope this helps. Do let us know if you any further queries.


    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
      • Want a reminder to come back and check responses? Here is how to subscribe to a email-notifications.

0 additional answers

Sort by: Most helpful