Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:oauth-io/oauthd into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
william26 committed Dec 4, 2014
2 parents 63e3a32 + 3aebd31 commit e6a7383
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 5 deletions.
53 changes: 53 additions & 0 deletions providers/angel_list/conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "AngelList",
"desc": "AngelList is a US website for startups, angel investors, and job-seekers looking to work at startups.",
"url": "https://api.angel.co/",
"oauth2": {
"authorize": {
"url": "https://angel.co/api/oauth/authorize",
"query": {
"response_type": "code",
"client_id": "{client_id}",
"state": "{{state}}",
"scope": "{scope}"
},
"format": "url"
},
"access_token": {
"url": "https://angel.co/api/oauth/token",
"query": {
"client_id": "{client_id}",
"client_secret": "{client_secret}",
"grant_type": "authorization_code",
"code": "{{code}}"
},
"format": "json"
},
"request": {
"url": "https://api.angel.co/"
},
"refresh": {
"url": "https://angel.co/api/oauth/token",
"method": "post",
"query": {
"client_id": "{client_id}",
"client_secret": "{client_secret}",
"grant_type": "refresh_token",
"refresh_token": "{{refresh_token}}"
}
},
"parameters": {
"client_id": "string",
"client_secret": "string",
"scope": {
"values": {
"comment": "gives your application permission to create and destroy likes and comments.",
"email": "gives your application access to the user's email address.",
"message": "gives your application access to the user's private messages, for reading and writing.",
"talent": "gives your application access to the user's presence on AngelList Talent."
},
"separator": " "
}
}
}
}
Binary file added providers/angel_list/config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added providers/angel_list/keys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added providers/angel_list/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions providers/angel_list/me.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
var me = {
fetch: [

function(fetched_elts) {
return '/1/me';
}

],
params: {},
fields: {
id: "=",
email: "=",
location: "country",
name: "=",
avatar: function(me) {
return me.image;
}
}
};
module.exports = me;
22 changes: 22 additions & 0 deletions providers/angel_list/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"settings": {
"createApp": {
"url": "https://angel.co/api/oauth/clients",
"image": "config.png"
},
"copyingKey": {
"url": "https://angel.co/api/oauth/clients",
"image": "keys.png"
},
"install": {
"href": {
"provider": "https://angel.co/",
"docs": "https://angel.co/api"
}
},
"sample": {
"method": "get",
"url": "/1/me"
}
}
}
2 changes: 1 addition & 1 deletion providers/spotify/conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"user-read-private": "Access your profile name, image and subscription details",
"user-read-email": "Get your real email address"
},
"separator": ","
"separator": " "
}
}
},
Expand Down
7 changes: 3 additions & 4 deletions providers/uber/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"settings": {
"createApp": {
"url": "https://login.uber.com/applications/new",
"url": "https://login.uber.com/applications/new"
},
"copyingKey": {
"url": "https://login.uber.com/applications",
"url": "https://login.uber.com/applications"
},
"install": {
"href": {
Expand All @@ -21,7 +21,6 @@
"method": "get",
"url": "/v1/me"
}
},
"jsfiddle": "http://jsfiddle.net/willjcksn/2hb6B/embedded/"
}
}
}

0 comments on commit e6a7383

Please sign in to comment.