Skip to content

Commit

Permalink
Adding Act-On Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaitanya Surapaneni committed Dec 13, 2018
1 parent 8347402 commit 2129b47
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
45 changes: 45 additions & 0 deletions providers/act_on/conf.json
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"
}
}
Binary file added providers/act_on/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions providers/act_on/me.js
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;
20 changes: 20 additions & 0 deletions providers/act_on/settings.json
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"
}
}
}

0 comments on commit 2129b47

Please sign in to comment.