Skip to content

How to use tokens to POST a new Gist? #626

@ichintu

Description

@ichintu

Hello, I am trying to programmatically generate Gists. Example I can do this for Github gist:

curl -L \
  -X POST \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  https://api.github.com/gists \
  -d '{"description":"Example of a gist","public":false,"files":{"README.md":{"content":"Hello World"}}}'

How do I accomplish this here? Thanks for checking :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions