Skip to content

class_APIRequest

Tom edited this page Apr 1, 2018 · 2 revisions

APIRequest

Parent class for all API Requests

Constructor

ApiRequest(key,endpoint,arguments)

  • key (string) - Your API key.
  • endpoint (string) - The endpoint to connect to
  • arguments (object/dict) - Object containing all additional queries

Variables

  • key (string) - API key set
  • endpoint (string) - endpoint
  • arguments (object/dict) - arguments
  • response (APIResponse) - Response from self.send() only set after send has been called

Functions

url

url()

returns

url (string) - The url for this request


parseArguments

parseArguments()

returns

args (string) - String of arguments for use in url


send

send() Sends the api request

returns

response (APIResponse) - response from the request

Clone this wiki locally