Adobe OAuth Server To Server Connection
The following guide will show you how to add an Adobe OAuth Server To Server Connection to your Lumar account.
Creating an Adobe OAuth Server To Server Connection
To connect your Lumar account to an Adobe Analytics project:
- Add
OAuth Server-to-Server
credentials to your Adobe Analytics project on the Adobe Developer Console. - Once the OAuth Server-to-Server credentials are generated, copy the following properties:
CLIENT ID
CLIENT SECRET
- Use the values as inputs of a
createAdobeOauthServerToServerConnection
mutation:
- Mutation
- Variables
- Response
- cURL
mutation createAdobeOauthServerToServerConnection($input: CreateAdobeOauthServerToServerConnectionInput!){
createAdobeOauthServerToServerConnection(input: $input) {
adobeOauthServerToServerConnection {
clientId
}
}
}
{
"input": {
"clientId": "rbn0i2j38jvubk050g81nt8tnqfsp60z",
"clientSecret": "p8e-Hae9H7CSwyo657lmeza_mdfR3lh_OIN3"
}
}
{
"data": {
"createAdobeOauthServerToServerConnection": {
"adobeOauthServerToServerConnection": {
"clientId": "rbn0i2j38jvubk050g81nt8tnqfsp60z",
}
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"mutation createAdobeOauthServerToServerConnection($input: CreateAdobeOauthServerToServerConnectionInput!){ createAdobeOauthServerToServerConnection(input: $input) { adobeOauthServerToServerConnection { clientId } } }","variables":{"input":{"clientId":"rbn0i2j38jvubk050g81nt8tnqfsp60z","clientSecret":"p8e-Hae9H7CSwyo657lmeza_mdfR3lh_OIN3"}}}' https://api.lumar.io/graphql
Updating the credentials of an existing Adobe Adobe OAuth Server To Server Connection
The credentials of an existing Adobe Adobe OAuth Server To Server can be updated via updaateAdobeOauthServerToServer
mutation:
- Mutation
- Variables
- Response
- cURL
mutation updateAdobeOauthServerToServerConnection($input: UpdateAdobeOauthServerToServerConnectionInput!){
updateAdobeOauthServerToServerConnection(input: $input) {
adobeOauthServerToServerConnection {
clientId
}
}
}
{
"input": {
"adobeOauthServerToServerConnectionId": "TjAzNEFkb2JlT2F1dGhTZXJ2ZXJUb1NlcnZlckNvbm5lY3Rpb24xMw",
"clientId": "rbn0i2j38jvubk050g81nt8tnqfsp60z",
"clientSecret": "p8e-Hae9H7CSwyo657lmeza_mdfR3lh_OIN3"
}
}
{
"data": {
"updateAdobeOauthServerToServerConnection": {
"adobeOauthServerToServerConnection": {
"clientId": "rbn0i2j38jvubk050g81nt8tnqfsp60z"
}
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"mutation updateAdobeOauthServerToServerConnection($input: UpdateAdobeOauthServerToServerConnectionInput!){ updateAdobeOauthServerToServerConnection(input: $input) { adobeOauthServerToServerConnection { clientId } } }","variables":{"input":{"adobeOauthServerToServerConnectionId":"TjAzNEFkb2JlT2F1dGhTZXJ2ZXJUb1NlcnZlckNvbm5lY3Rpb24xMw","clientId":"rbn0i2j38jvubk050g81nt8tnqfsp60z","clientSecret":"p8e-Hae9H7CSwyo657lmeza_mdfR3lh_OIN3"}}}' https://api.lumar.io/graphql
Deleting an Adobe Adobe OAuth Server To Server Connection
An existing Adobe JTW connection can be deleted via deleteAdobeOauthServerToServer
mutation:
- Mutation
- Variables
- Response
- cURL
mutation deleteAdobeOauthServerToServerConnection($input: DeleteAdobeOauthServerToServerConnectionInput!){
deleteAdobeOauthServerToServerConnection(input: $input) {
adobeOauthServerToServerConnection {
clientId
}
}
}
{
"input": {
"adobeOauthServerToServerConnectionId": "TjAzNEFkb2JlT2F1dGhTZXJ2ZXJUb1NlcnZlckNvbm5lY3Rpb24xMw"
}
}
{
"data": {
"deleteAdobeOauthServerToServerConnection": {
"adobeOauthServerToServerConnection": {
"clientId": "rbn0i2j38jvubk050g81nt8tnqfsp60z"
}
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"mutation deleteAdobeOauthServerToServerConnection($input: DeleteAdobeOauthServerToServerConnectionInput!){ deleteAdobeOauthServerToServerConnection(input: $input) { adobeOauthServerToServerConnection { clientId } } }","variables":{"input":{"adobeOauthServerToServerConnectionId":"TjAzNEFkb2JlT2F1dGhTZXJ2ZXJUb1NlcnZlckNvbm5lY3Rpb24xMw"}}}' https://api.lumar.io/graphql