An open API service indexing awesome lists of open source software.

https://github.com/chimeracoder/goangel

A Go client library for the AngelList API
https://github.com/chimeracoder/goangel

Last synced: 8 months ago
JSON representation

A Go client library for the AngelList API

Awesome Lists containing this project

README

          

GoAngel
=========

GoAngel is a simple Go client library for interfacing with the AngelList API. The results of API queries are deserialized into static structs for convenience, so that a successful API call should yield a predictable, known type with no need for type assertions.

The current release implements most endpoints, though it is not yet complete.

Installation
-------------

````
> go get github.com/ChimeraCoder/goangel
````

Authentication
---------

````go

c := new(angel.AngelClient)
c.Client_id = "your-angel-client-id"
c.Client_secret = "your-angel-client-secret"

//You can now perform unauthenticated queries against the AngelList APi
//To perform authenticated queries (which includes any PUT/POST/DELETE queries)
//you need an access token

url := c.AuthorizeUri()

//Redirect users to url, and record the code sent in the callback

result, err := c.RequestAccessToken(code)

//You can now perform authenticated queries against the AngelList API

````

License
--------

GoAngel is free software released under the MIT license.