Skip to main content

Client Class

Client used to perform requests to our API.

Attributes / Properties

NameTypeDescription
keystringThe API_KEY that will be used by the client.

Methods

METHODDESCRIPTION
request()Send a request to our API

request

request(text)

Performs a request to lettria API using the API_KEY provided.

Parameters:

NameTypeDescriptionOptional
textstringText data to be sent to the APIFalse

Return:

TypeDescription
list of dictionaryEach of these objects represents the informations collected for a sentence.