# OAuth1 Authorization (Twitter API)

**URL:** <https://community.parabola.io/t/oauth1-authorization-twitter-api/696>\
**Category:** Ask a question\
**Created:** [June 15, 2020, 5:40pm UTC](https://community.parabola.io/t/oauth1-authorization-twitter-api/696 "2020-06-15T17:40:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gustavo\_Dias](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gustavo\_Dias](https://community.parabola.io/u/Gustavo_Dias)\
**Post date:** [June 15, 2020, 5:40pm UTC](https://community.parabola.io/t/oauth1-authorization-twitter-api/696/1 "2020-06-15T17:40:26Z")

</div>

Is there a way to make an API call using OAuth1 Authorization?

Twitter’s API uses this method with:

```auto
oauth_consumer_key

oauth_consumer_secret

oauth_token

oauth_token_secret

```

> **[OAuth 1.0a](https://developer.twitter.com/en/docs/basics/authentication/oauth-1-0a)**
>
> OAuth 1.0a is the user-authentication method for authenticating with the Twitter API. This method allows an authorized app to act on behalf of a user and is required to use many Twitter APIs, including the Ads API and Media API.

Thanks!

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/brian/32/11_2.png) [@brian](https://community.parabola.io/u/brian)\
**Post date:** [June 15, 2020, 10:08pm UTC](https://community.parabola.io/t/oauth1-authorization-twitter-api/696/2 "2020-06-15T22:08:24Z")

</div>

Hey Gustavo, at the moment we do not have a way to support OAuth 1.0a.

Looking at their docs, though, you could use OAuth 2.0 which we do support, or better yet, if you can use Basic Auth, that is just the username and password field in the API Import in Parabola, and is the easiest.

---

<div class="post-metadata">

**Author:** ![Gustavo\_Dias](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gustavo\_Dias](https://community.parabola.io/u/Gustavo_Dias)\
**Post date:** [June 16, 2020, 12:19pm UTC](https://community.parabola.io/t/oauth1-authorization-twitter-api/696/3 "2020-06-16T12:19:21Z")

</div>

Thanks for the reply, @brian

Unfortunately it seems like Twitter’s Standard API can only be used with OAuth 1.0a.

 ![Screenshot 2020-06-16 at 14.17.18](https://us1.discourse-cdn.com/flex020/uploads/parabola/original/1X/195feaa0749a0a619028e1f73c8443b8d7828f1c.png)  

> **[Introducing Twitter premium APIs](https://blog.twitter.com/developer/en_us/topics/tools/2017/introducing-twitter-premium-apis.html)**
>
> In the spring, we laid out a vision for our API platform and published a public roadmap. Today we’re excited to deliver the next big piece of this vision with Twitter premium APIs.

OAuth 2.0 bearer token and Basic Auth is reserved for the Premium and Enterprise APIs. I don’t completely understand the division between the APIs but I know I’m using the Standard one.

Thanks!

---

<div class="post-metadata">

**Author:** ![Gustavo\_Dias](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gustavo\_Dias](https://community.parabola.io/u/Gustavo_Dias)\
**Post date:** [June 16, 2020, 9:42pm UTC](https://community.parabola.io/t/oauth1-authorization-twitter-api/696/4 "2020-06-16T21:42:44Z")

</div>

Alright. I was able to generate a Bear Token and it worked.

For reference if anyone lands here with the same issue. You will need to use a REST client like Postman, Insomnia or any other to make a `POST` call to the `oauth2/token` endpoint.

You will need to authorise this call using a basic authorisation method using:

```auto
username = API key
password = API Secret

```

[https://developer.twitter.com/en/docs/basics/authentication/api-reference/token](https://developer.twitter.com/en/docs/basics/authentication/api-reference/token)

With the generated Token you will be able to use the Twitter API with Parabola.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![maxkatz](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@maxkatz](https://community.parabola.io/u/maxkatz)\
**Post date:** [July 19, 2020, 4:25am UTC](https://community.parabola.io/t/oauth1-authorization-twitter-api/696/5 "2020-07-19T04:25:13Z")

</div>

Hi Gustavo,

Which Twitter API are you invoking?

I’m trying to post a tweet message but it seems it requires OAuth 1.0a:

 ![Screen Shot 2020-07-18 at 9.37.05 PM](https://us1.discourse-cdn.com/flex020/uploads/parabola/original/1X/035dcb766baf5cd7c86a5777c36bd6d2a98bcf6c.png)
