Add a contact e-mail group via the Rest API
Hello
Is it possible to add a contact to a group of e-mail through the Rest API?
I saw this article here http://topliners.eloqua.com/docs/DOC-3526 which shows that you can get a subscription email group contacts status, however it is not clear how actually to add a contact to a group of e-mail via the API.
I tried to post data to ' data/contact / {id} / groups/email/subscription "but I get a response of"Method not allowed"API."
If someone managed to achieve? If so, how?
See you soon
Hi David,
The POST operation is not supported by this endpoint, but you can use PUT a method for updating subscriptions Contact:
- PUT: / data/contact / {id} / email/group / {groupId} / subscription
Where the request body contains an object of the subscription. Hope this helps and please let us know if you need more information.
Thank you
Fred
Tags: Marketers
Similar Questions
-
Download Images in Eloqua via the REST API (via an API?)
Hello community!
We are interfacing content between a site CMS and Eloqua for custom content, so that we can deliver such content in emails and the landing pages effectively.
We have an obligation to affix an image (such as an icon of great white game) overlay, a bit like this: http://u3.uicdn.net/372/cc7727211f2a7907850d2f844e707/diy-business-us/vi_video_content.jpg
Unfortunately the CMS system he can not provide, we for some reason any. And trying to superimpose the image in e-mails of Eloqua using CSS will result in inconsistent results between email clients, particularly mobile and so on...
Our plan is so - to superimpose the image in our middleware software and then download the image to Eloqua, then use newly uploaded in the system.
Is there a way we can download a picture of Eloqua via the REST API or any other API?
Thank you
Mark
Hi Mark,
Yes, you can use the Rest API to upload images to your installation of Eloqua. We will aim to provide documentation in the near future, but for now, we have an example of project available on Github to show how load images: Image of assistance
Hope this helps and please let me know if you need more information.
Thank you
Fred
-
How to get assets via the REST API (Webcenter Sites)
Hello world
I need to get assets via the REST API using Javascript, but I don't know how to open a session. Can someone explain to me how do?
I would really appreciate it.
I also followed this guide Oracle Webcenter REST API permission | Stories of official codification but does not work.
Best regards!
Hello rvillamarin,
Take a look at https://docs.oracle.com/cd/E29542_01/doc.1111/e29634/wemsecurity.htm#WBCSD306. With this, you should be able to get a ticket, to pass at the request of the REST.
Kind regards
Stephan.
-
Question: Is it possible to add a contact to a shared list using REST API?
Maybe it's just me being blind... Is it possible to add a contact to a shared list using the REST API?
Thank you!
ADI
OTHER offers:
PUT API/REST/1.0/assets/contact/list/{id}
-
Updated filter shared via the REST API
Hello I'm trying to update a shared API filter. I'm using PHP and client fredsakr/eloqua-php-application · GitHub.
So far, I was able to retrieve the filter with the following call:
<?php require('./eloquaRequest.php'); $eloquaRequest = new EloquaRequest('site', 'User.Name', 'password', 'https://secure.eloqua.com/API/REST/1.0'); $response = $eloquaRequest->get('assets/contact/filters?search=TheFilterName&depth=complete'); print_r($response); ?>
I can see the filter in the answer below:
( [type] => ContactFilter [currentStatus] => Active [id] => 100761 [createdAt] => 1380137168 [createdBy] => 48 [depth] => complete [folderId] => 1036 [name] => TheFilterName [updatedAt] => 1383589417 [updatedBy] => 48 [count] => 254382 [criteria] => Array ( [0] => stdClass Object ( [type] => ContactFieldCriterion [id] => 1912 [condition] => stdClass Object ( [type] => TextSetCondition [operator] => in [optionListId] => 193 ) [fieldId] => 100012 ) ) [lastCalculatedAt] => 1380137190 [scope] => global statement] => 1912
What I want to do is update that corresponds to the values of 'Compare the Contact fields' in the GUI Eloqua under Contact = > Shared Library = > Contact filters.
Looks like he has the "[type] = ContactFieldCriterion" under the [criteria] field in the response.
I'd get how this value in a call to REST, and also how I would update it.
Please let me know if you need more details on this issue. Please help and thank you.
After some research I found what I wanted to do has been updated the list of options for this filter. See http://topliners.eloqua.com/docs/DOC-3588 for documentation on the base object. But I had difficulty in updating an OptionList with the Rest API using PUT. If you can help, please visit http://topliners.eloqua.com/message/36739#36739 . Thank you.
-
Is it possible to activate / De Activate campaign via the REST API?
Hello
Is it possible to activate / campaigns via the API REST Eloqua activates?
I was checking out this site on the Eloqua Rest API, but did not see the option http://secure.eloqua.com/api/docs/Static/Rest/2.0/index.htm
Kind regards
Aditya
Yes, for example, to Activate your campaign, use a POST/assets / campaign / active / {id}, where id is the ID of the campaign.
-
Submitting a form Via the REST API using the PHP library request
Can someone send please how to use the library to query PHP found at fredsakr/eloqua-php-request · GitHub to publish form to Eloqua data?
So far, I have following:
// include the Eloqua REST client require_once('eloquaRequest.php'); // define the Contact class class ContactForm { public $FirstName; public $LastName; public $PhoneNumber; public $Institution; public $ContactComment; public $EmailAddress; } $client = new EloquaRequest('SITE', 'USERNAME', 'PASSWORD', 'https://secure.eloqua.com/API/REST/1.0'); // instantiate a new instance of the ContactForm class $contact = new ContactForm(); $contact->FirstName = 'Sample'; $contact->LastName = 'Import'.date("Y-m-d-H-i-s"); $contact->PhoneNumber = '111-111-1111'; $contact->Institution = 'Company Name'; $contact->ContactComment = 'This is a test of the API'; $contact->EmailAddress = '[email protected]'; // invoke a POST request to create the contact $response = $client->post('/data/form/45', $contact);
However, it returns the following:
array(1) { [0]=> object(stdClass)#318 (4) { ["type"]=> string(21) "ObjectValidationError" ["property"]=> string(11) "fieldValues" ["requirement"]=> object(stdClass)#316 (1) { ["type"]=> string(23) "NoDuplicatesRequirement" } ["value"]=> string(6) "" } }
Can someone give me a guide step by step on how to do it properly please?
Hello world
We have added a 'sample' in the repository of PHP library folder request on Github. The first example shows how to submit form using the API data:
Please note that you can describe the form fields and other metadata using the following endpoint:
- To access the forms : GET/assets/form / {id}? depth = {depth}
Hope this helps and please let me know if you need more information.
Thank you
Fred
-
Pre-load via the REST API?
I have a form that I'm pulling the API on a page hosted on the outside.
Is it possible to have the Eloqua to any element in the request before it returns the HTML code?
I guess I could make it through the GUID in the cookie of the visitor/contact.
Otherwise I guess I'll have to resort to a Web database search. I would avoid this approach so that customers don't have to worry about the update of JS, whenever they update the form on the side Eloqua.
The best method would be to parse the response from the API and create your own form based on the form fields and then use the API to seek contact with their GUID (new feature API) and fill out the form before it is even loaded.
-
Are forms retrieved via the REST API supposed to be embeddable?
When retrieve us forms form/assets/point endpoint {identifier} REST, we notice that when we make the HTML code in the "html" field, input text fields contain < eloqua / > tags than their values.
Everything else works fine. Is it possible to omit tags eloqua?
Here's a screenshot of what I mean by that:
Hello
Forms returned by the API are structured for our Landing Pages that contain markup. You can scan the document and remove these items to make embed-able.
We'll look at adding this feature in a future version of the API. Hope this helps and please let me know if you need more information.
Thank you
Fred
-
Add vNIC PortGroup scope with the REST API security group
I created a security group within the reach of a PortGroup via the REST API. Now, I'm trying to add a vNIC, also via the REST API.
To help illustrate, I have a JMTest1 VM with 1 vNIC connected to the PortGroup which is the scope of the security group. When I change this group the first item in the list that could be added to the security group is the first (and only) JMTest1 vNIC.
To add it via the REST API, I need to provide the following:
https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/ < member-moref >
for example I need to understand what the < member-moref > for the vNIC to JMTest1 and this is what I have a problem with.
If I add the vNIC through the user interface and then interrogate the security group it gives me below the answer:
< securitygroup >
< objectIdobjectId > securitygroup-xx < / objectId >
< type >
< typeName > SecurityGroup < / typeName >
< / type >
< name > JMTest7 < / name >
< description / >
< revision > 9 < / revision >
< objectTypeName > SecurityGroup < / objectTypeName >
< scope >
< id > dvportgroup-xxxxx / < ID >
< objectTypeName > DistributedVirtualPortgroup < / objectTypeName >
< name > dv-xxxxx < / name >
< / scope >
< extendedAttributes / >
< inheritanceAllowed > false < / inheritanceAllowed >
< member >
500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >
< type >
Vnic < typeName > < / typeName >
< / type >
< name > JMTest1 - NIC 1 < / name >
< revision > 6 < / revision >
< objectTypeName > Vnic < / objectTypeName >
< scope >
< id > vm-xxxxx / < ID >
< objectTypeName > VirtualMachine < / objectTypeName >
< name > JMTest1 < / name >
< / scope >
< extendedAttributes / >
< / member >
< / securitygroup >
It seems that the < member-moref > for the JMTest1 vNIC is < objectId > 500758f6-b97b - a 7, 79 - 0c 04 - 996f53edf3f0.000 < / objectId >
If I run now:
then the vNIC is successfully added to the security group. (yay!) So I am now left with the task of how to get
500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >
of a vNIC?
I have looked at the object in the Mob vCenter and via PowerCLI, but cannot see how to derive from it.
Anyone know the answer to that?
The uuid vnic is created by concatenating the vm instanceUuid + '. ' + the last three digits of the vnic device key. (The vnic is located in the area of the config.hardware.device of the virtual machine and the key will be to shape 4xxx, where xxx represents the 3 numbers you need).
-
To access the vCOPs with the RESTful API
VCOPs can be used such as the information it provides are accessible via the RESTful API?
RV Ops 6.x see this thread:
-
Migration of Lotus Notes e-mail groups in the hive
Is it possible to reproduce our existing Lotus Notes e-mail groups in the hive?
Edited by: dazimon June 23, 2011 07:59Sorry,
Distribution list - my apologies for the jargon.
Phil
-
Using the REST API to delete the contact from the contacts list
Hello world
I am looking for some info for the creation of a request to delete a contact from a list of Contact using the REST API. Here's what I have in Java where the contact id is 1 'and my list is 72'. I'm open to responses in Java, c# or other languages.
serverAddress = new URL ("https://secure.p03.eloqua.com/API/REST/1.0/assets/contact/list/72");
establish communication stuff
connection = null;
Set up the initial connection
connection = (HttpURLConnection) serverAddress.openConnection ();
connection.setRequestMethod ("PUT");
connection.setRequestProperty ("content-type", "json; charset=utf-8 ");"
connection.setRequestProperty ("authorization", 'Basic BLOCKED');
String body = '{\"membershipDeletions\":[\"1\']}";
connection.setDoOutput (true);
connection.getOutputStream () .write (body.getBytes ("UTF8"));
connection.setReadTimeout (10000);
Connection.Connect ();
When I test with it I get a '400' HTTP response
Thank you!
Hi Noel,
The following document describes the operations available for lists of contacts in the Rest API. Please note that we also have a project open source c# example illustrates the use of these endpoints.
Repositories are all available to the public on Github. Hope this helps and please let me know if you need more information.
Thank you
Fred
-
Get complete information of Contact with the REST API with Ruby
Hello
I'm trying to find information from a contact using the REST API from Ruby. I followed the example posted here and I was able to get good contact with Eloqua, but information are the basis and the FieldValues table is very long with fieldValues can only be and no label field.
I don't know I asked for complete = depth, and I verified that the contact even on the side of Eloqua seen so many other areas.
It's the URL that I use: https://secure.eloqua.com/API/REST/1.0/data/contacts?search= < emailAddress > & depth = full & count = 1
and I don't get like this field in the fieldValues can only be: {'type': 'FieldValue', 'id': "100175"}
With respect to the main information, they are basic.
Is it possible to obtain all the contact fields, the same than the one I see on the site of Eloqua?
Thank you
Hi Theyaa,
You can use the following endpoint to retrieve a list of all fields with their unique identifier and metadata:
- GET /API/REST/1.0/assets/contact/fields?depth=complete&search=*&page=1&count=250
Hope this helps and please let me know if you need more information.
Thank you
Fred
-
Searching for a contact through GUID on the REST API
After talking to some of the developers at Vidyard, it was obvious that there is a way that eloqua could really help us!
If taken Eloqua supported a way of searching for a contact based on the GUID of the cookie in the REST API, we could stop using the SOAP API in total. I wanted to just start a thread to see if anyone is looking for this feature? Any ideas would be appreciated!
Hey Ian, is currently our roadmap. No ETA at this time.
Maybe you are looking for
-
Should I uninstall Firefox and start over? Perhaps there is a file in the settings of the profile that has changed?
-
DSLRA200 10 sec self-timer missing
OK, so basically the second 10 self timing drive mode is missing. There are 2 second one, but it is not very useful for the moment. Someone has the same problem or have any advice for me? Thank you
-
Cannot close the ports 21 and 443 on router r7000
my router from r7000 nighthawk is currently running firmware v1.0.6.28_1.1.83 and I'm comcerned with security of my network from ports 21 (ftp) and 443 (https) are both always open to exploits. These results, to which I refer are scan utility shield
-
Formatting an external hard drive to FAT32 using vista
Hello I own an Xbox 360 and a Windows Vista-based computer. I wanted to store music and movies on an external hard drive and connect it to my Xbox 360 so I can make use for more then just a game. I first tried this using a 2 GB USB key and it worke
-
Windows vista sys. error message says need to adobe flash player 9.0 or later. I have this already. cannot run videos from internet