Thinkific.Api.Users (Thinkific API SDK v0.1.3)
API calls for all endpoints tagged Users
.
Link to this section Summary
Functions
createUser Create a new user
deleteUserByID Deletes a User identified by the provided id
getUserByID Retrieves a User identified by the provided id
getUsers Retrieve a list of users
updateUserByID Updates the user specified by the provided id
Link to this section Functions
Link to this function
create_user(connection, body, opts \\ [])
Specs
create_user( Tesla.Env.client(), Thinkific.Model.CreateUserRequest.t(), keyword() ) :: {:ok, Thinkific.Model.UserResponse.t()} | {:error, Tesla.Env.t()}
createUser Create a new user
Parameters
- connection (Thinkific.Connection): Connection to server
- body (CreateUserRequest): Create user request body
- opts (KeywordList): [optional] Optional parameters
Returns
} on success {:error, info} on failure
Link to this function
delete_user_by_id(connection, id, opts \\ [])
Specs
delete_user_by_id(Tesla.Env.client(), float(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
deleteUserByID Deletes a User identified by the provided id
Parameters
- connection (Thinkific.Connection): Connection to server
- id (float()): Id of the user in the form of an integer
- opts (KeywordList): [optional] Optional parameters
Returns
} on success {:error, info} on failure
Link to this function
get_user_by_id(connection, id, opts \\ [])
Specs
get_user_by_id(Tesla.Env.client(), float(), keyword()) :: {:ok, Thinkific.Model.UserResponse.t()} | {:error, Tesla.Env.t()}
getUserByID Retrieves a User identified by the provided id
Parameters
- connection (Thinkific.Connection): Connection to server
- id (float()): Id of the user in the form of an integer
- opts (KeywordList): [optional] Optional parameters
Returns
} on success {:error, info} on failure
Link to this function
get_users(connection, opts \\ [])
Specs
get_users(Tesla.Env.client(), keyword()) :: {:ok, Thinkific.Model.GetUsersResponse.t()} | {:error, Tesla.Env.t()}
getUsers Retrieve a list of users
Parameters
- connection (Thinkific.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
- :page (float()): The page within the collection to fetch
- :limit (float()): The number of items to be returned
- :query[email] (String.t): Search Users by email.
- :query[role] (String.t): Search Users by role.
- :query[external_source] (String.t): Search Users by external source.
- :query[custom_profile_field_label] (String.t): Search by custom profile field label (must be combined with custom_profile_field_value)
- :query[custom_profile_field_value] (String.t): Search by custom profile field value (must be combined with custom_profile_field_label)
- :query[group_id] (float()): Search by group id.
Returns
} on success {:error, info} on failure
Link to this function
update_user_by_id(connection, id, body, opts \\ [])
Specs
update_user_by_id( Tesla.Env.client(), float(), Thinkific.Model.UpdateUserRequest.t(), keyword() ) :: {:ok, Thinkific.Model.UpdateUserRequest.t()} | {:error, Tesla.Env.t()}
updateUserByID Updates the user specified by the provided id
Parameters
- connection (Thinkific.Connection): Connection to server
- id (float()): Id of the user in the form of an integer
- body (UpdateUserRequest):
- opts (KeywordList): [optional] Optional parameters
Returns
} on success {:error, info} on failure