LingoHub v0.1.0 LingoHub View Source

Documentation for LingoHub.

Link to this section Summary

Functions

Retrieve details for a given project of an account

Retrive the contents of a given resource

Retrieve all the projects a user has access to

Retrive a list of resources for a given project of an account

Login using username and passwor to retrive the users api token

Upload the contents of a file

Link to this section Types

Link to this section Functions

Link to this function

fetch_project(account, project, opts) View Source
fetch_project(account(), project(), opts()) ::
  {:ok, LingoHub.Project.t()} | {:error, term()}

Retrieve details for a given project of an account.

Link to this function

fetch_resource(account, project, filename, opts) View Source
fetch_resource(account(), project(), filename :: binary(), opts()) ::
  {:ok, binary()} | {:error, term()}

Retrive the contents of a given resource.

Link to this function

list_projects(opts) View Source
list_projects(opts()) :: {:ok, [LingoHub.Project.t()]} | {:error, term()}

Retrieve all the projects a user has access to.

Link to this function

list_resources(account, project, opts) View Source
list_resources(account(), project(), opts()) ::
  {:ok, [LingoHub.Resource.t()]} | {:error, term()}

Retrive a list of resources for a given project of an account.

Link to this function

login(user_name, password) View Source
login(String.t(), String.t()) :: {:ok, token :: String.t()} | {:error, term()}

Login using username and passwor to retrive the users api token.

Link to this function

put_resource(account, project, file, opts) View Source
put_resource(account(), project(), file, opts()) :: :ok | {:error, term()}
when file: {:file, Path.t()} | {:binary, iodata()}

Upload the contents of a file