Authorization

class github.Authorization.Authorization

This class represents Authorizations. The reference can be found here https://docs.github.com/en/enterprise-server@3.0/rest/reference/oauth-authorizations

app
Type:github.AuthorizationApplication.AuthorizationApplication
created_at
Type:datetime.datetime
id
Type:integer
note
Type:string
note_url
Type:string
scopes
Type:list of string
token
Type:string
updated_at
Type:datetime.datetime
url
Type:string
delete()
Calls:DELETE /authorizations/{id}
Return type:None
edit(scopes=NotSet, add_scopes=NotSet, remove_scopes=NotSet, note=NotSet, note_url=NotSet)
Calls:

PATCH /authorizations/{id}

Parameters:
  • scopes – list of string
  • add_scopes – list of string
  • remove_scopes – list of string
  • note – string
  • note_url – string
Return type:

None