Popularity
3.8
Stable
Activity
0.0
Stable
0
14
1

Monthly Downloads: 0
Programming language: Elixir
License: MIT License
Tags: Third Party APIs    

assembla_api alternatives and similar packages

Based on the "Third Party APIs" category.
Alternatively, view assembla_api alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of assembla_api or a related project?

Add another 'Third Party APIs' Package

README

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