Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
256 stars 38 forks source link

Add 'Get Creator Goals' - twitch.py #105

Closed gitagogaming closed 2 years ago

gitagogaming commented 2 years ago

I was going thru the Twitch API docs again and came across Get Creator Goals but noticed it was not available in the current version so I thought I would add it.

Teekeks commented 2 years ago

This endpoint requires the AuthType.USER auth with the AuthScope.CHANNEL_READ_GOALS auth scope.

Also the endpoint returns data.created_at which should be made a datetime

gitagogaming commented 2 years ago

Hopefully I got it all fixed it correctly for ye.. I am a bit of a novice I'll be honest :)