How can I change a contacts email group subscription status using the Eloqua REST/BULK Api? - eloqua

I am accessing the Eloqua API and I am able to read the list of Email Groups for each contact and retrieve the Subscription status via the following API Endpoint:
GET api/REST/1.0/data/contact/12339/email/groups/subscription
However the Eloqua Documentation seems to lacking. In fact I can not find the above endpoint in the documentation itself. How can I change the subscription status via API?
Below is a screenshot of what I am talking about:
I can read the email group name and status via the endpoint mentioned above. But how can I modify it programmatically using an Eloqua API?

I found my own answer to this question. Using the developer tools of Chrome I was able to simulate the REST call and find the end point and replicate it using SOAPUI. This is the key step. As Oracle's Eloqua documentation is underwhelming you can use this way to find the undocumented endpoints.
For those interest the required request looks as follows:
PUT /API/REST/2.0/data/contact/12339/email/group/104/subscription
{
"contactId": "12339",
"emailGroup": {
"id": "104",
"depth":"minimal",
"name":"ANL_V_EMAIL"
},
"isSubscribed"="false"
}

Related

Is it possible to register a call-back URL in Twilio messaging service via REST API?

I would like to know whether a call-back URL can be registered via REST API? If so can I get the API document?
This document says it can be done. But the actual API information is not listed there.
This can be done using the incomingPhoneNumber API endpoint.
https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource
Look at the update code examples, to
understand the syntax.

Find source of Google My Business API request

We are setting up Google My Business using the following oauth instructions.
https://developers.google.com/my-business/content/notification-setup
However, there seems to be a process somewhere that keeps changing the settings and sending the notifications to a different pub/sub topic. So basically it appears to be making a PUT request to :
https://mybusiness.googleapis.com/v4/accounts/{accountId}/notifications
Is there a way to determine the source of the request ? There does not seem to be any instructions on how to access Google My Business API audit logs.
You should check who else has access to that location group, ideally through the GMB UI as that can give you an e-mail address hint:

Outlook api. How to search emails with oauth token?

Is there any working and complete code samples that demonstrate how to work with hotmail api?
For example I've already made for gmail api with web application:
oAuth
search mail by uuid inside mail body
get Message Content
get Message Attachment
some processing code
Now I need to integrate hotmail.
done only:
oAuth with scope https://graph.microsoft.com/mail.read
That code samples that I found in official documentation doesn't shows how to pass oauth token - thats why have a lot of questions
Share some links that will help me, please!
I recommend you use the Microsoft Graph to read and search emails. It works for work, school and personal Microsoft accounts (hotmail, live, outlook.com, etc).
Since you already have an access token, just pass it through with an Authorization header. More information about using access tokens with the Microsoft Graph can be found in their documentation.
Authorization: Bearer [Access Token]
For searching email, try the following query:
GET https://graph.microsoft.com/v1.0/me/messages?$search="hello world". If you're trying to search for emails in a different user's mail, try:
GET https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/messages?$search=foobar
I also recommend trying the Microsoft Graph Explorer since it has sample queries for Outlook Mail. To show the Outlook samples, click the show more samples link. Also, clicking the icon to the right of each query will bring you to the documentation page for that sample.

Is it possible to integrate Outlook Social Connector with Rails?

I'm currently investigating the possibility to connect rails applicatrion with exchange for getting user information. I think to create rails page with user profile, and get profile information from exchange.
I found this: Outlook Social Connector
As I understand, this is an API for getting information about user (contact list, updates, new e.g.) from exchange, isn't it?
So, please, help me to understand this thing...
Is it possible to get facebook-updates of my outlook-contacts using some of EWS/Social Connector APIs ?
No, the Outlook Social Connector is a way that Outlook can connect to social networks. It sounds like you want to access data in the Exchange server. Have you looked at the REST APIs? There's a Rails sample here: https://github.com/jasonjoh/o365-vcftool. The code from that sample is also wrapped in the ruby_outlook gem.

How to schedule a campaign in eloqua by api?

Am working in Eloqua 10. I am creating a dotnet application to create campaign by using eloqua rest api.
I am able to create campaign and activate a campaign.
But how can I schedule a campaign that should be activated on a specific date?
Is there any way to achieve the same using eloqua api?
I suggest you to use mozilla-f12-network and there are all HTTP requests which are made. That means, if you define the specific activation date in eloqua and click save it will run HTTP request which will be tracked in the Mozilla Network.
Since the REST api are just HTTP requests you can make one according to that.
I am very sure it works, I did it the same way, just make it right.
Try running the following:
POST /assets/campaign/active/{id}?scheduledFor={scheduledFor}&runAsUserId={runAsUserId}&activateNow={activateNow}
If you are using the Eloqua Rest API, here is the doc for the campaign endpoint: http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#Developers/RESTAPI/2.0%20Endpoints/Campaigns/put-assets-campaign.htm

Resources