-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chaitanya Surapaneni
committed
Dec 13, 2018
1 parent
8347402
commit 2129b47
Showing
4 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "Act-On", | ||
"desc": "Act-On is a software-as-a-service product for marketing automation developed by Act-On Software, a company headquartered in Beaverton, Oregon. It is used mostly by small to medium-sized businesses and departments of large enterprises.", | ||
"url": "https://restapi.actonsoftware.com", | ||
"oauth2": { | ||
"authorize": { | ||
"url": "/authorize", | ||
"query": { | ||
"scope": "PRODUCTION", | ||
"response_type": "code", | ||
"client_id": "{client_id}", | ||
"state": "{{state}}", | ||
"redirect_uri": "{{callback}}" | ||
} | ||
}, | ||
"access_token": { | ||
"url": "/token", | ||
"query": { | ||
"code": "{{code}}", | ||
"client_id": "{client_id}", | ||
"client_secret": "{client_secret}", | ||
"redirect_uri": "{{callback}}", | ||
"grant_type": "authorization_code" | ||
} | ||
}, | ||
"request": { | ||
"headers": { | ||
"Authorization": "Bearer {{token}}" | ||
} | ||
}, | ||
"refresh": { | ||
"url": "/token", | ||
"method": "post", | ||
"query": { | ||
"grant_type": "refresh_token", | ||
"refresh_token": "{{refresh_token}}", | ||
"client_id": "{client_id}" | ||
} | ||
} | ||
}, | ||
"href": { | ||
"docs": "https://developer.act-on.com/documentation/", | ||
"provider": "https://act-on.com" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
var me = { | ||
url: '/api/1/account', | ||
params: {}, | ||
fields: { | ||
id: function (me) { | ||
return me.account_id; | ||
}, | ||
user_name: function (me) { | ||
return me.user_name; | ||
}, | ||
user_email: function (me) { | ||
return me.user_email; | ||
}, | ||
cname: function (me) { | ||
return me.cname; | ||
}, | ||
user_type: function (me) { | ||
return me.user_type; | ||
}, | ||
account_name: function (me) { | ||
return me.account_name; | ||
}, | ||
is_admin: function (me) { | ||
return me.isAdmin; | ||
} | ||
} | ||
}; | ||
module.exports = me; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"settings": { | ||
"createApp": { | ||
"url": "https://developer.act-on.com/provision/" | ||
}, | ||
"copyingKey": { | ||
"url": "https://developer.act-on.com/provision/" | ||
}, | ||
"install": { | ||
"href": { | ||
"provider": "https://act-on.com/", | ||
"docs": "https://developer.act-on.com/documentation/" | ||
} | ||
}, | ||
"sample": { | ||
"method": "get", | ||
"url": "/api/1/list" | ||
} | ||
} | ||
} |