Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Request Issues #8

Open
HoseaCodes opened this issue Sep 17, 2020 · 0 comments
Open

Github Request Issues #8

HoseaCodes opened this issue Sep 17, 2020 · 0 comments

Comments

@HoseaCodes
Copy link
Owner

Description of issue

We have successfully pulled in the Github API with a token but when we send a post request it does not go through. Our belief is we cannot determine the correct syntax for the header to send with the post.

Github Docs suggests:

Creates a new repository for the authenticated user.

POST /user/repos

OAuth scope requirements
When using OAuth, authorizations must include:

public_repo scope or repo scope to create a public repository
repo scope to create a private repository


Error messages or screenshots

Imgur


Steps attempted to resolve the issue

We attempted to inject the information directly into our post request.
Imgur

We verified the token work through postman for accessing an account with a get request.
Imgur

We attempted to access the create a post request with the same access token but received an error.
Imgur


Research

https://python-social-auth.readthedocs.io/en/latest/use_cases.html#signup-by-oauth-access-token
https://developer.github.com/v3/repos/#create-a-repository-for-the-authenticated-user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant