Skip to content

Commit

Permalink
Adding Oracle Marketing Cloud (Eloqua) 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 a66e2ba
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 0 deletions.
36 changes: 36 additions & 0 deletions providers/oracle_marketing_cloud/conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "Oracle Marketing Cloud",
"desc": "Oracle Marketing Cloud personalizes customer experiences with marketing software including content marketing, social marketing, and data management.",
"url": "https://login.eloqua.com/auth/oauth2",
"oauth2": {
"authorize": "/authorize",
"access_token": {
"url": "/token",
"headers": {
"Authorization": "Basic !BASE64{client_id}:{client_secret}!BASE64"
}
},
"refresh": {
"url": "/token",
"query": {
"scope": "full",
"grant_type": "refresh_token",
"refresh_token": "{{refresh_token}}",
"access_token": "{{token}}"
},
"headers": {
"Authorization": "Basic !BASE64{client_id}:{client_secret}!BASE64"
}
},
"request": {
"headers": {
"Authorization": "Bearer {{token}}"
}
}
},
"href": {
"docs": "http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/",
"apps": "https://YOUR_BASESITE./apps/Cloud/Developer/App",
"provider": "https://login.eloqua.com/"
}
}
Binary file added providers/oracle_marketing_cloud/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/oracle_marketing_cloud/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/oracle_marketing_cloud/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/oracle_marketing_cloud/me.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var me = {
url: "https://login.eloqua.com/id",
params: {},
fields: {
name: function (me) {
return me.user ? me.user.displayName : undefined;
},
firstname: function (me) {
return me.user ? me.user.firstName : undefined;
},
lastname: function (me) {
return me.user ? me.user.lasttName : undefined;
},
email: function (me) {
return me.user ? me.user.emailAddress : undefined;
},
baseUrl: function (me) {
return me.urls ? me.urls.base : undefined;
},
apis: function (me) {
return me.urls ? me.urls.apis : undefined;
},
urls: function (me) {
return me.urls ? me.urls : undefined;
}
}
};
module.exports = me;
22 changes: 22 additions & 0 deletions providers/oracle_marketing_cloud/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"settings": {
"createApp": {
"url": "https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/Developers/AppCloud/Develop/develop-apps.htm",
"image": "config.png"
},
"copyingKey": {
"url": "https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/Developers/AppCloud/Develop/develop-apps.htm",
"image": "keys.png"
},
"install": {
"href": {
"provider": "https://login.eloqua.com/",
"docs": "https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/Developers/get_started_lp.htm"
}
},
"sample": {
"method": "get",
"url": "/messages"
}
}
}

0 comments on commit a66e2ba

Please sign in to comment.