Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Support Github token to access gist #47

Merged
merged 1 commit into from
May 2, 2022
Merged

Support Github token to access gist #47

merged 1 commit into from
May 2, 2022

Conversation

miry
Copy link
Owner

@miry miry commented May 2, 2022

Currently gist is limit 60 requests per hour. Make this higher need to setup token to access gist.

Read token from env: MEDUP_GITHUB_API_TOKEN.
Request to create a token via page: https://github.com/settings/tokens

Add header: --header Authorization:\ token\ ******

Use logger from context.
Introduce MEDIUM_GITHUB_API_TOKEN environment.
Send gist requests with token.
Update readme about envs.
@miry miry merged commit 67b36f9 into master May 2, 2022
@miry miry deleted the 47-github-token branch May 2, 2022 16:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant