You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
536 B
16 lines
536 B
package pixelapi
|
|
|
|
import (
|
|
"fornaxian.tech/pixeldrain_server/api/restapi/apitype"
|
|
)
|
|
|
|
// GetPatreonByID returns information about a patron by the ID
|
|
func (p *PixelAPI) GetPatreonByID(id string) (resp apitype.Patron, err error) {
|
|
return resp, p.jsonRequest("GET", "patreon/"+id, &resp)
|
|
}
|
|
|
|
// PostPatreonLink links a patreon subscription to the pixeldrain account which
|
|
// is logged into this API client
|
|
func (p *PixelAPI) PostPatreonLink(id string) (err error) {
|
|
return p.jsonRequest("POST", "patreon/"+id+"/link_subscription", nil)
|
|
}
|