Skip to content

Github Request Issues #8

@HoseaCodes

Description

@HoseaCodes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions