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
Related
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.
I want to develop an add in for Outlook which after click on button forward selected email to hardcoded address. What I find is that I must use Graph API to do this, but I lost in documentation on how I get token to make an API call. In Outlook API it is simple as call getCallbackTokenAsync. Is it similar way to get token for Graph API? What is the simplest way of getting this token, best if it could be done without user interaction?
It's straightforward. First you need to register you application in Azure AD, make sure you provide right roles/permissions so that you can get a token. Using the token you can access a protected resource like Microsoft Graph API. You may want to get it started following the documentation/javascript sample.
I retrieved an access token from my server and have connected the JavaScript SDk chat client like so. I have created a channel like so. The next step I'd like to invite a user like this. In that example they invite the user 'elmo'. Where do I get 'elmo' or how do I present the user with a selection of possible 'elmo's? The client sdk has no list users functionality.
Edit:
It looks like the REST API has a list users method. But can't find any examples of it used. Should the 1st person chat client be using the REST API as well to supplement gaps in the client SDK or should it get the identity from backend? Our team has different interpretations of the docs: twilio REST API is strictly for backend vs. twilio REST API can and should be used any where. Moved to twilio REST API: strictly backend?
Twilio developer evangelist here.
In my opinion Twilio's Chat API should not be the central source of truth of the users in your system. I don't know anything more about your application than what you've written here, but I would expect that you have a user model within your own system that you have used to generate or create an identity that is then used by the Chat API as well as how your user logs in to your system. I would then use that user model to connect users and provide their identities so that they can join chats together.
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"
}
I was just wondering if there was a simple function to create a customer in the Stripe API from my app in Swift? Instead of having to create a manual HTTP post request to my server, "createCustomer.php", and then retrieve the results (This is what I do right now).
I tried to search this up on Google, but I can't seem to find anything. I simply want the user to save their card details for later user, that's why I am in need of creating a customer.
Thanks in advance!
Except for payment information tokenization (which is done via Stripe's iOS or Android SDKs in mobile apps, and Checkout or Stripe.js in web apps), all API requests must be sent from a backend server.
The reason is that aside from token creation, all other API requests must be sent using your secret API key. You cannot embed or share the secret API key with your mobile app in any way, as it would then be possible for an attacker to retrieve it and use it to issue API requests on your behalf.
This is why there is no Swift function to create a customer -- the customer creation must be done from your backend, using the server-side language of your choice.