Get methods

Definition

Get methods retrieve data from the entity on which they are called. These methods are common to all entities.

Method
Description
Usage
Arguments
Response

all

Returns a list of all entities in the account.

Ubidots.<entity>.all();

None

get

Returns a list of the first 100 entities in the account.

Ubidots.<entity>.get();

None

first

Returns the first entity instance in the account.

Ubidots.<entity>.first();

None

paginate

Performs a paginated request to retrieve entities.

Ubidots.<entity>.paginate([page, [size]])

  • page: number The page number to retrieve

  • size: number The maximum number of results per page

Last updated

Was this helpful?