Skip to content

Scripts Methods

Info

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

GetScriptFromScriptbloxId

Retrieves a script from Scriptblox based on the provided Scriptblox ID.

Script GetScriptFromScriptbloxId(string bloxId)

Parameters
  • bloxId (string): The Scriptblox ID of the script to retrieve.
Return Value
  • Script: The script retrieved from the API, or a default script if the retrieval fails or the data is invalid.

GetFrontPageScripts

Retrieves a list of scripts from the front page based on the provided page number.

List<Script> GetFrontPageScripts(int pageNumber = 1)

Parameters
  • pageNumber (int, optional): The page number of the front page scripts (default is 1).
Return Value
  • List<Script>: A list of Script objects representing the scripts from the front page.

GetScriptsFromPageNumber

Retrieves a list of scripts from the front page based on the provided page number.

List<Script> GetScriptsFromPageNumber(int pageNumber = 1)

Parameters
  • pageNumber (int, optional): The page number of the front page scripts (default is 1).
Return Value
  • List<Script>: A list of Script objects representing the scripts from the front page.

GetScriptsFromQuery

Retrieves a list of scripts from Scriptblox based on the provided search query and maximum results.

List<Script> GetScriptsFromQuery(string searchQuery, int maxResults = 20)

Parameters
  • searchQuery (string): The search query to filter the scripts.
  • maxResults (int, optional): The maximum number of results to retrieve (default is 20).
Return Value
  • List<Script>: A list of Script objects representing the scripts matching the search query.

GetScriptsFromUser

Retrieves a list of scripts from the front page based on the provided page number.

List<Script> GetScriptsFromUser(string username)

Parameters
  • pageNumber (int, optional): The page number of the front page scripts (default is 1).
Return Value
  • List<Script>: A list of Script objects representing the scripts owned by the user.