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 type
account()
View Source
account()
View Source
account() :: String.t()
account() :: String.t()
Link to this type
opts()
View Source
opts()
View Source
opts() :: Keyword.t()
opts() :: Keyword.t()
Link to this type
project()
View Source
project()
View Source
project() :: String.t()
project() :: String.t()
Link to this section Functions
Link to this function
fetch_project(account, project, opts)
View Source
fetch_project(account, project, opts)
View Source
fetch_project(account(), project(), opts()) ::
{:ok, LingoHub.Project.t()} | {:error, term()}
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
Retrive the contents of a given resource.
Link to this function
list_projects(opts)
View Source
list_projects(opts)
View Source
list_projects(opts()) :: {:ok, [LingoHub.Project.t()]} | {:error, term()}
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)
View Source
list_resources(account(), project(), opts()) ::
{:ok, [LingoHub.Resource.t()]} | {:error, term()}
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 using username and passwor to retrive the users api token.
Link to this function
put_resource(account, project, file, opts) View Source
Upload the contents of a file