Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - assembla/ex_assembla_api: Assembla API client for Elixir

Assembla API client for Elixir. Contribute to assembla/ex_assembla_api development by creating an account on GitHub.

Visit SiteGitHub - assembla/ex_assembla_api: Assembla API client for Elixir

GitHub - assembla/ex_assembla_api: Assembla API client for Elixir

Assembla API client for Elixir. Contribute to assembla/ex_assembla_api development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

Assembla Api

Set environment variables with values from API section:

export ASSEMBLA_API_KEY='key'
export ASSEMBLA_API_KEY='secret'

or configure application in mix config file:

config :assembla_api,
  api_key: "fill-me",
  api_secret: "fill-me"

Usage

my_info = AssemblaApi.User.me
other_user = AssemblaApi.User.get("bot")
spaces = AssemblaApi.Spaces.list
space = AssemblaApi.Spaces.get("sample")
space_tools = AssemblaApi.Spaces.SpaceTools.list("sample")
tool = AssemblaApi.Spaces.SpaceTools.get("sample", "git")

alias AssemblaApi.Spaces.SpaceTools.MergeRequests
mrs = MergeRequests.list "sample", "git", %{status: :open, per_page: 20}
mr = MergeRequests.get "sample", "git", 2022504
{ok, mr} = MergeRequests.create "project", "git", %{title: "Test API", source_symbol: "test_api", target_symbol: "master"}

alias AssemblaApi.Spaces.SpaceTools.MergeRequests.Versions
versions = Versions.list("sample", "git", 2022504)
version = Versions.get("sample", "git", 2022504, 1)

alias AssemblaApi.Spaces.SpaceTools.MergeRequests.Versions.Votes
{:ok, votes} = Votes.list("sample", "git", 2022504, 1)
{:ok, votes} = Votes.upvote("sample", "git", 2022504, 1)
{:ok, votes} = Votes.downvote("sample", "git", 2022504, 1)
{:ok, votes} = Votes.remove("sample", "git", 2022504, 1)

alias AssemblaApi.Spaces.SpaceTools.MergeRequests.Versions.Comments
{:ok, comments} = Comments.list "project", "git", 2027413, 1
{:ok, comments} = Comments.create "project", "git", 2027413, 1, "Elixir world!"

TODO

  • Add more api methods
  • Add oauth token authentication

Elixir Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.