ProductPromotion
Logo

Elixir

made by https://0x3d.site

GitHub - trenpixster/asanaficator: An elixir wrapper for Asana
An elixir wrapper for Asana. Contribute to trenpixster/asanaficator development by creating an account on GitHub.
Visit Site

GitHub - trenpixster/asanaficator: An elixir wrapper for Asana

GitHub - trenpixster/asanaficator: An elixir wrapper for Asana

Build Status

Asanaficator

Simple Elixir wrapper for the Asana API. Based on Tentacat.

Documentation can be found here.

Features

  • Users
  • Tasks
    • Projects

Quickstart

Fetching dependencies and running on elixir console:

mix deps.get
iex -S mix

You will see something like this:

Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Interactive Elixir (0.13.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>

Now you can run the examples!

Examples

Every call to Asana need a client.

Getting info from a user using a client

iex> client = Asanaficator.Client.new(%{access_token: "1234567890"})
Asanaficator.Client{auth: %{access_token: "1234567890"}, endpoint: "https://app.asana.com/api/1.0/"}
iex> Asanaficator.Users.me client
%{"data" => %{"email" => "[email protected]", "id" => 123,
    "name" => "John Doe",
    "photo" => %{"image_128x128" => "https://s3.amazonaws.com/profile_photos/123.abc_128x128.png",
      "image_21x21" => "https://s3.amazonaws.com/profile_photos/123.abc_21x21.png",
      "image_27x27" => "https://s3.amazonaws.com/profile_photos/123.abc_27x27.png",
      "image_36x36" => "https://s3.amazonaws.com/profile_photos/123.abc_36x36.png",
      "image_60x60" => "https://s3.amazonaws.com/profile_photos/123.abc_60x60.png"},
    "workspaces" => [%{"id" => 456, "name" => "example.com"},
     %{"id" => 789, "name" => "Personal Projects"}]}}

Getting a task

iex> Asanaficator.Tasks.find(12345, client)
%{"data" => %{"assignee" => nil, "assignee_status" => "upcoming",
    "completed" => false, "completed_at" => nil,
    "created_at" => "2015-06-30T00:40:30.971Z", "due_at" => nil,
    "due_on" => nil,
    "followers" => [%{"id" => 123, "name" => "John Doe"}], "hearted" => false,
    "hearts" => [], "id" => 456,
    "memberships" => [%{"project" => %{"id" => 456,
         "name" => "That Awesome Project"}, "section" => nil}],
    "modified_at" => "2015-06-30T11:11:37.472Z",
    "name" => "This is an example task",
    "notes" => "Some really great descriptive notes",
    "num_hearts" => 0, "parent" => nil,
    "projects" => [%{"id" => 456,
       "name" => "That Awesome Project"}], "tags" => [],
    "workspace" => %{"id" => 456, "name" => "example.com"}}}

Contributing

Start by forking this repo

Then run this command to fetch dependencies and run tests:

MIX_ENV=test mix do deps.get, test

Pull requests are greatly appreciated

Articles
to learn more about the elixir concepts.

Resources
which are currently available to browse on.

mail [email protected] to add your project or resources here 🔥.

FAQ's
to know more about the topic.

mail [email protected] to add your project or resources here 🔥.

Queries
or most google FAQ's about Elixir.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory