Skip to content

Authorization Methods

Info

This is Unofficial and a fan made project, do not ask ScriptBlox for support.

PingIdle

Sends a ping request to the idle endpoint.

BoolStatus PingIdle(string authorization)

Parameters
  • authorization (string): The authorization token.
Return Value
  • BoolStatus: A BoolStatus object indicating if the request was successful and the response status code.
Exceptions
  • None

ChangeUsername

Changes the username of the user.

BoolStatus ChangeUsername(string authorization, string newUsername)

Parameters
  • authorization (string): The authorization token.
  • newUsername (string): The new username designated.
Return Value
  • BoolStatus: A BoolStatus object indicating if the request was successful and the response status code.
Exceptions
  • None

ChangePassword

Changes the password of the user.

BoolStatus ChangePassword(string authorization, string oldPassword, string newPassword)

Parameters
  • authorization (string): The authorization token.
  • olddPassword (string): The old password.
  • newPassword (string): The new password.
Return Value
  • BoolStatus: A BoolStatus object indicating if the request was successful and the response status code.
Exceptions
  • None

UpdateBio

Updates the bio of the user.

BoolStatus UpdateBio(string authorization, string newBio)

Parameters
  • authorization (string): The authorization token.
  • newBio (string): The new bio designated.
Return Value
  • BoolStatus: A BoolStatus object indicating if the request was successful and the response status code.
Exceptions
  • None

FollowUser

Follow's a user on ScriptBlox.

BoolStatus FollowUser(string authorization, string username)

Parameters
  • authorization (string): The authorization token.
  • username (string): The username of the user to be followed.
Return Value
  • BoolStatus: A BoolStatus object indicating if the request was successful and the response status code.
Exceptions
  • None

UnFollowUser

UnFollow's a user on ScriptBlox.

BoolStatus UnFollowUser(string authorization, string username)

Parameters
  • authorization (string): The authorization token.
  • username (string): The username of the user to be followed.
Return Value
  • BoolStatus: A BoolStatus object indicating if the request was successful and the response status code.
Exceptions
  • None

SendPasswordReset

Sends a password reset request.

BoolStatus SendPasswordReset(string authorization)

Parameters
  • emailToReset (string): The email of the account to reset.
Return Value
  • BoolStatus: A BoolStatus object indicating if the request was successful and the response status code.
Exceptions
  • None