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
- Host: GitHub
- URL: https://github.com/chimeracoder/goangel
- Owner: ChimeraCoder
- License: other
- Created: 2013-02-08T17:43:43.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-12-15T00:20:37.000Z (about 12 years ago)
- Last Synced: 2025-04-12T17:48:52.370Z (10 months ago)
- Language: Go
- Size: 133 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: COPYING
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.