---
title: "Discussion on \"Generate a Twitter oauth2 token with python\" | Hashnode"
description: "Discussion on \"Generate a Twitter oauth2 token with python\". This took me a while to figure out, so I'm sharing it here in case you ever need a Twitter OAUTH2 token (e.g to reenable previews on your HipChat Server)\n\nimport base64\nimport requests\nimport urllib\n\napikey=urllib.unquote(\"YOUR_KEY\")\napisecret=urllib..."
url: "https://hashnode.com/posts/generate-a-twitter-oauth2-token-with-python/604eb59d37d84907f132978d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generate a Twitter oauth2 token with python](https://ramiroberrelleza.com/generate-a-twitter-oauth2-token-with-python?utm_source=hashnode&utm_medium=feed)

This took me a while to figure out, so I'm sharing it here in case you ever need a Twitter OAUTH2 token (e.g to reenable previews on your HipChat Server) import base64 import requests import urllib apikey=urllib.unquote("YOUR\_KEY") apisecret=urllib...

Jan 16, 2016 · 1 min read · ramiroberrelleza.com  
Read the article

## Written by

[Ramiro Berrelleza](https://hashnode.com/@ramiro)

@ramiro · San Francisco

  
[View profile](https://hashnode.com/@ramiro)

Co-founder & CEO at Okteto

I’m the founder and CEO of Okteto, where we’re busy re-imagining the developer experience for cloud native applications. Before Okteto, I built enterprise chat products at Atlassian, application lifecycle management tools at Elasticbox (now part of Centurylink) and cloud services at Microsoft Azure.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
