|
delegate void | onStatus (string text) |
|
delegate void | onPageReturn (JsonValue jsonData_) |
|
bool | hasReward (string _rewardTitle) |
| Checks if current user has reward.
|
|
bool | IsConnected () |
|
void | connect () |
| Connects to patreon page.
|
|
void | cancel () |
| Use it if you use connect() and wish to cancel the connection before it is complete.
|
|
void | refreshToken () |
| Refreshes the token by requesting a new token from patreon page.
|
|
bool | setTokenFromJson (string jsontext, bool loaduserdata_=true) |
| If you have token saved in json format, you can skip the authentication proccess and patreon page access by providing the JSON here.
|
|
JsonValue | getUserJsonData () |
|
string | getTokenAsJson () |
| If you want to save the token to use later, use this. Afterwards, use setTokenFromJson function to restore token to skip the login process.
|
|
IEnumerator | getPage (string api_auth2_="api/current_user", onPageReturn callback_=null) |
|
void | getPledges (string campaignId, Action< List< string > > getList) |
|
◆ getTokenAsJson()
string Patreon.getTokenAsJson |
( |
| ) |
|
|
inline |
If you want to save the token to use later, use this. Afterwards, use setTokenFromJson function to restore token to skip the login process.
- Returns
◆ hasReward()
bool Patreon.hasReward |
( |
string |
_rewardTitle | ) |
|
|
inline |
Checks if current user has reward.
- Parameters
-
_rewardTitle | The title of the reward in the patreon page |
- Returns
- returns true if user has reward with title _rewardTitle
◆ setTokenFromJson()
bool Patreon.setTokenFromJson |
( |
string |
jsontext, |
|
|
bool |
loaduserdata_ = true |
|
) |
| |
|
inline |
If you have token saved in json format, you can skip the authentication proccess and patreon page access by providing the JSON here.
- Parameters
-
jsontext | Client information in JSON format |
The documentation for this class was generated from the following file:
- C:/Transhuman/S2/Assets/Plugins/PatrionSimpleAPI/Patreon.cs