Quesiton answer REST API
I'm trying to understand what information is contained in the Eloqua activities for the activityTypes object. Activities has these attributes:
-ID
-type
-activityDate
-activityType
-assetID
-contactID
-Details
By the documentation, the different activityTypes include emalClickThrough emailSend emailOpen, webVisit, campaignMembership... etc.
What I've not seen so far, this is what Details would be available for each of these categories. The link below provides an example of output that would be for a emailSend:
http://topliners.Eloqua.com/docs/doc-3092
Of course, "Subject line" not will be not rendered for webVisit and CampaignMembership... but what would? We are in the design phase of a project and rely on documentation to illustrate attributes are available for export in a data warehouse. Please point me to the documentation where I can find this level of information.
Thank you!
Hi Joseph,.
We have updated the original document (REST API - access Contact activities) to include the details for each type of activity.
Included here for convenience:
Types of activities (Details)
- campaignMembership
- Replied
- CampaignName
- LeadStage
- emailClickThrough
- EmailClickedThruLink
- EmailName
- EmailWebLink
- EmailRecipientId
- SubjectLine
- emailOpen
- EmailName
- EmailWebLink
- EmailRecipientId
- IPAddress
- SubjectLine
- emailSend
- EmailName
- EmailWebLink
- EmailRecipientId
- SubjectLine
- emailSubscribe
- CampaignName
- EmailCampaignId
- emailUnsubscribe
- CampaignName
- EmailCampaignId
- formSubmit
- Collection
- FormName
- webVisit
- Duration
- QueryString
- QueryStringDisplay
- Thread
Please let me know if you need more information.
Thank you
Fred
Tags: Marketers
Similar Questions
-
Hi, I'm developing an application to update the skills of resources with the REST API.
I can get all the values I want to (GET), but when I try to update a resource using PUT, and then I get a "415 Unsupported Media Type" webException.
I discovered that c# / UCCX works with demand. MediaType (instead of request. ContentType).
I got this error when I tried to GET the data. He now works for the GET.
But to PUT it, I got the error. Method is defined as SAID, MediaType = "application/xml".
I tried to empty, ' text/xml '...
Looked on the internet, Web sites, saying always specify ContentType/MediaType = "application/xml", I have already done.
I also got the same error if I try an application COULD and without sending data.
Thanks for your help!
public string MakeRequest()
{
var request = (HttpWebRequest) WebRequest.Create (EndPoint);
request. Credentials = new System.Net.NetworkCredential (login, password);
request. Method = Method.ToString ();
request. ContentLength = 0;
request. Accept = ContentType;
request. MediaType = ContentType;
#region so PUT
If (! string.) IsNullOrEmpty (PostData) & method == HttpVerb.PUT)
{
encoding of var = new UTF8Encoding();
PostData = PostData.Replace ("\n", "");
var bytes = Encoding.UTF8.GetBytes (PostData);
request. ContentLength = bytes. Length;
using (var writeStream = request. GetRequestStream())
{
writeStream.Write (bytes, 0, bytes.) (Length);
}
}
#endregionTry
{
assistance (response var = (HttpWebResponse) request. GetResponse())
{
var responseValue = string. Empty;If (answer. StatusCode! = HttpStatusCode.OK)
{
var message = String.Format ("request failed. Received HTTP {0}", response. StatusCode);
throw new ApplicationException (message);
}Enter the answer
using (var responseStream = response. GetResponseStream())
{
If (responseStream! = null)
using (var = new StreamReader (responseStream) Player)
{
responseValue = reader. ReadToEnd();
}
}Return responseValue;
}
}
catch (WebException wex)
{
error string = wex. Message;
Return ' ';
}OK you got, in this case, post your request in the Sub forum as well which is sought after by developers and you can you expect a concrete answer/explanation on the same
https://communities.Cisco.com/community/Developer/Express-configuration-API
Concerning
Deepak
-
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.
-
Calling REST API security token error simple GET method
Please help me get past this error. I have yet to get a successful REST API request of Eloqua. API is enabled for our sandbox that I managed by instantiating different SOAP request/response.
This is my test RequestURI
https://secure.Eloqua.com/API/rest/2.0/data/contact/3
With the method 'GET' headers appropriate and what I have collected of their API guides, including the very useful
Eloqua REST API - authentication
Eloqua REST API - URL parameters
Eloqua REST API - HTTP request headers
RequestURI works when typed manually into a authenticated (connected to the Eloqua Sandbox session) tab of the FireFox browser.
When I try the request in my tools (middleware Tibco integration, acting as a client HTTP request), I always get the answer:
A security token that is associated with your session became invalid.
I saw this topic, but this was not useful in my case.
The behavior in my case is pretty consistent, and seems not to care if I even spoil RequestURI making it invalid. The same error persists.
Help, please! Thank you
Heath
A more complete answer follows:
< RequestActivityOutput >
< header > HTTP/1.1 200 OK
Content-Type: text/html; charset = utf-8
Content-Length: 2355
Date: Friday, April 19, 2013 19:43:19 GMT
cache-control: private
connection: close
P3P: CP = "IDC DSP COR DEVa TAIa OUR PHY ONL UNI COM NAV CNT STA BUS."
< / header >
< statusLine >
< httpVersion > HTTP/1.1 < / httpVersion >
< statusCode 200 > < / statusCode >
< reasonPhrase > OK < / reasonPhrase >
< / statusLine >
....
A security token that is associated with your session became invalid.
This can happen if you open multiple instances of Eloqua, in
different browser Windows or tabs, then the diary of one of
These instances. Please either close this window or tab, or
& lt; a href = "" / FormsLogin.aspx "target ="_top"> click here to connect to new & lt;" /a >. & lt; br >
Heath,
I'm not able to simply navigate to this URL in my browser either, even though I am connected to my sandbox (which has access to the API). I don't know how you manage to get there in Firefox.
That being said, I can hit this page of the REST API very well when I base64 encode my credentials HTTP as described here:
Eloqua REST API - authentication
May be useful to take a look at the auth string you use when calling from rest.
Jim
-
Using c# to access the REST API - 404 not found
Hi all!
Since there is currently no available c# example to access the REST API, I'm going at this from scratch using the Nuget - Microsoft.AspNet.WebApi.Client package.
I was able to successfully implement a framework for code that is able to make a call to the base_uris method and successfully receive a response.
I'm doing a transientDocuments call, but I still get a 404 not found error. I'm hoping somewhere here may be able to enlighten. I tried to use the current examples of Java to call REST API to get help on how to go about things.
I create an instance of the AdobeDCREST class, and pass the BaseUrl (https://api.echosign.com/api/rest/v5/) and my key to integration. When I make a call to the PostTransientDocuments method I pass into the path of the pdf file that I am trying to download. PostTransientDocuments then deals with the creation of an object the HttpContent (StreamContent) of the file, and then adding the headers, ContentType and ContentDisposition. The call to GetClient() will determine whether base_uris should be called still or not (I make the call to base_uris and storage of the api_access_point in a variable static for all other calls, as well as the java examples) and returns an object of the HttpClient with the access in the header already token. The call to base_uris works and returns a https://api.na1.echosign.com/ api_access_point
I then add/api/rest/v5 to the url access_point to call transientDocuments. Failure occurs during the call to PostAsync in transientDocuments with a 404 not found error.
Here's the code I'm using to test things so far. Any help would be greatly appreciated. I've been spinning my wheels on that for too long already.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace Ivezt.Documents {}
public class AdobeDCREST {}
< Summary >
A static variable that is defined by an initial call to GetBaseURIs() and used for all API calls later.
< / Summary >
Private Shared ReadOnly Property SERVICES_BASE_URL as string = string. Empty;
< Summary >
The end point of API to use. This aspect will have to be changed if Adobe is moving to a new version of the API and we update this
the code to use this new version.
< / Summary >
Private Shared ReadOnly Property API_URL as string = "api/rest/v5 /";
< Summary >
This BaseUrl is passed to the constructor and used to make a call to GetBaseURIs().
< / Summary >
private string m_strBaseUrl = string. Empty;
< Summary >
The IntegrationKey is passed to the constructor and must be added to the header of each API request.
< / Summary >
private string m_strIntegrationKey = string. Empty;
public AdobeDCREST (string strBaseUrl, string strIntegrationKey) {}
m_strBaseUrl = strBaseUrl;
m_strIntegrationKey = strIntegrationKey;
}
private HttpClient GetDefaultClient() {}
HttpClient client = new HttpClient();
Add an Accept header for JSON format.
customer. () DefaultRequestHeaders.Accept.Add
(new MediaTypeWithQualityHeaderValue("application/json"));
Add the access token
customer. DefaultRequestHeaders.Add ("Access token", m_strIntegrationKey);
customer feedback;
}
private HttpClient GetClient() {}
If we have not yet the SERVICES_BASE_URL, then we must do a GetBaseURIs call
If (SERVICES_BASE_URL. Length == 0) {}
HttpClient baseClient = GetDefaultClient();
Use the BaseUrl passed to the constructor
baseClient.BaseAddress = new Uri (m_strBaseUrl);
URI BaseURIs_Response = GetBaseURIs (baseClient);
SERVICES_BASE_URL = string. Format ("{0} {1}", uris.api_access_point, API_URL);
baseClient.Dispose ();
}
If (SERVICES_BASE_URL. Length == 0)
throw new Exception ("failed to retrieve Adobe Document cloud Base URI");
HttpClient client = GetDefaultClient();
customer. BaseAddress = new Uri (SERVICES_BASE_URL).
customer feedback;
}
public BaseURIs_Response GetBaseURIs(HttpClient client) {}
Call base_uris
HttpResponseMessage response = client. GetAsync ("base_uris"). Result; Call blocking!
If (answer. IsSuccessStatusCode) {}
Analyze the response body. Blocking!
answer back (BaseURIs_Response). Content.ReadAsAsync (typeof (BaseURIs_Response)). Result;
}
else {}
throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));
}
}
public TransientDocument_Response PostTransientDocuments (string strFilePath) {}
Call transientDocuments
Content the HttpContent = new StreamContent (new FileStream (strFilePath, FileMode.Open, FileAccess.Read));
content. Headers.ContentType = new MediaTypeHeaderValue("application/pdf");
content. Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") {}
Name = "file."
FileName = 'Template.pdf.
};
HttpClient client = GetClient();
HttpResponseMessage response = client. PostAsync ("transientDocuments", content). Result; Call blocking!
If (answer. IsSuccessStatusCode) {}
Analyze the response body. Blocking!
answer back (TransientDocument_Response). Content.ReadAsAsync (typeof (TransientDocument_Respons e)). Result;
}
else {}
throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));
}
}
}
public class BaseURIs_Response {}
public string web_access_point {get; set ;}}
public string api_access_point {get; set ;}}
}
public class TransientDocument_Response {}
public string transientDocumentId {get; set ;}}
}
}
I think I found my problem. I was not a multi-part post form data. Once I changed this, everything worked as expected. Here is an updated version of the PostTransientDocuments() method that works:
public TransientDocument_Response PostTransientDocuments (string strFilePath) {}
Call transientDocuments
using (var = {GetClient() customer)}
using (var content = new MultipartFormDataContent()) {}
var multiplesContent = new StreamContent (new FileStream (strFilePath, FileMode.Open, FileAccess.Read));
fileContent.Headers.ContentType = new MediaTypeHeaderValue("application/pdf");
fileContent.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") {}
Name = "file."
FileName = 'Template.pdf.
};
content. Add (FileContent);
HttpResponseMessage response = client. PostAsync ("transientDocuments", content). Result; Call blocking!
If (answer. IsSuccessStatusCode) {}
Analyze the response body. Blocking!
answer back (TransientDocument_Response). Content.ReadAsAsync (typeof (TransientDocument_Respons e)). Result;
}
else {}
throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));
}
}
}
}
-
Hi all
I want to read a specific attribute of my assets using the REST API and I would like this information in JSON, but I don't know how to do to get the attribute first, I used http://localhost:9080 / cs/REST/sites/mysite/types/BasicContent_C/assets/1374098078620 / , but the API returns the entire RESOURCE as XML, is it possible to return a single attribute? and it is possible to return this information in JSON format? or I need to read the information together and look for the attribute I want show?
I want to show information about an external jsp page, I mean the other application.
Best regards.
Hello rvillamarin,
I'm sorry but I needed the same two months ago and I have not found the way.
Answer your questions, in my opinion:
is it possible to return a single attribute? N ° you must retrieve the whole XML and look for the attribute on it.
and it is possible to return this information in JSON? No. two options: create a model in WCSites in order to recover the attributes and present a JSON or create an intermediate java class to convert XML to JSON.
or I need to read the information together and search for the attribute I want to show? So you can not do directly in the call of REST, you need to develop something.
What we have done is to process the XML once we received in the client.
It will be useful,
Gerardo
-
Hello
I try to GET to https://VRA_URL:8443/darwin/api/2.0/group but I get no answer.
Added headers:
1 content-Type: application/json
2 permission: carrier < token >
Am I missing something?
Darwin's App Services? I am familiar with this... but I know how to get a business group IaaS through the REST API of vRA if that is what you want.
-
vCO 5.5.2 and vCAC 6.1 plugin error REST API
Hello
I get an error when you try to make applicants vCAC 6.1 REST API calls of vCO 5.5.2 for the items in the catalog. This same code works very well with the vCAC 6.0.1 plugin.
Error:
Data serialization error. (Workflow: Test vCAC remains / Scriptable task (item1) #24)
Code:
var point = {'@type': 'CatalogItemRequest',}
"catalogItemRef": {"id": "3e6c3f13-6ea0-4da5-8bac-d8cb27e64f24"},
"Organization": {"tenantRef": "vcacadmin"}
{"subtenantRef": "e931debb-6200-40e5-89a7-01d35d0cc306"},
"requestedFor": "[email protected]",
"State": "SUBJECT."
"requestNumber": 0.
"requestData": {"items": []}
{"key": "provider-blueprintId', 'value': {'type': 'string', 'value':"catalogItem.id"}}.
{"key": "provider-provisioningGroupId', 'value': {'type':"string","value":"e931debb-6200-40e5-89a7-01d35d0cc306"}},
{"key": "requestedFor', 'value': {'type':"string","value":"[email protected]"}},
{'key': 'provider - VirtualMachine.CPU.Count', 'value': {'type': 'integer', 'value': 1}},
{'key': 'provider - VirtualMachine.Memory.Size', 'value': {'type': 'integer', 'value': 1024}},
{'key': 'provider - VirtualMachine.LeaseDays', 'value': {'type': 'integer', 'value': 0}},
{"key": "provider-__Notes', 'value': {'type': 'string', 'value': 'Test'}},
{'key': 'provider - VirtualMachine.Disk0.Size', 'value': {'type': 'string', 'value': '40'}},
{{[{"key": 'provider - VirtualMachine.Disk1.Size', 'value': {'type': 'string', 'value': '8'}}]}}
var catalogRest = vcac.createRestClient (vCACCAFEServicesEnum.CATALOG_SERVICE);
var answer = catalogRest.post("consumer/requests",item);
vCAC 6.0.x plugin expects a json object in the call to rest.
6.1 plugin expects a value of json string.
This will do the trick:
var response = catalogRest.post ("consumer/queries", JSON.stringify (item));
-
Hi all
I'm not able to run the workflow with the REST api.
POST https:// < < HOST > >: < < PORT > > / api/workflows/94dd5f20-c190-4023-a0a7-1589c46f3792/executions/
Here is the answer. VCO is not all workflow runs so I assumed nothing was performed. I can run to the https://wxpcpvcd006a:8281 / api/stream/f29ebe52-27b2-42d1-84f1-6ecfb939326c to get all the info on the workflow. Any help appreciated.
{
'relations': {}
"total": 0.
"link":]
{
"href": " https://wxpcpvcd006a:8281 / vco/api/stream/94dd5f20-c190-4023-a0a7-1589c46f3792 / ",
'rel': 'up '.
},
{
"href": " https://wxpcpvcd006a:8281 / vco/api/stream/94dd5f20-c190-4023-a0a7-1589c46f3792/executions/ ",
'rel': 'Add '.
}
]
}
}
Simply enter the braces of opening and closing as your json content:
{}
-
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).
-
vShield does REST APIs support JSON?
Hello
I tried on vShield REST API. Support the JSON content type? All of the examples I see is using xml. I am able to get JSON content. But when I try to create/update it gives me the error.
This gives me the answer in JSON format:
curl k u < user >: < pass > h ' Accept: application / json ' https:// /API/2.0/services/ipset/ipset-150 < ip >
But if I try:
curl k u < user >: < pass > x POST h "Accept: application / json ' h ' Content-Type: application / json" d "{'description': 'test FPS',"name":" FPS-test-1', 'value': '22.22.22.1', 'revision': 0 '} " https:// /api/2.0/services/ipset/dvportgroup-1265 < ip >
I get the following error:
The HTTP 400 - the request sent by the client state is syntactically incorrect.
Please help me with this.
Kind regards
Skander
I think that our RESTful systems only manage the entry of XML format. This is more of a general statement that specific POSSIBLE.
You can file a request for assistance for a feature request? Some people asking about it internally as a possible use scenarios to see what the benefits would be there. If you make an SR, private Message me please the SR number.
-
Make a call to REST API through c# to 'change a fixed cost value.
HI -.
I am trying to make a call to REST API through c# for "change to a fixed cost value.
I did successfully the following tasks via c# with the call of the API REMAINS the chargeback manager 2.0
-Connection to the chargeback manager 2.0
-Add a custom Chargeback hierarchy
-Add vCenter Server entity in the hierarchy of Chargeback that was created by the REST API
-Add the fixed cost model.
But when I tried to use the REST API to 'change a value of fixed cost' based on the version of the document programming API 2.0.
He is not successful... Here are the error messages and the code I had.
Code:
Public Shared ReadOnly Property ModifiyFixedCost (CookieContainer cookieContainer) as string
{
HttpWebRequest request;
Stream streamReq;
= request (WebRequest.Create ("https://10.63.11.34/vCenter-CB/api/fixedCost/707/values"); )
= //request (WebRequest.Create ("https://10.63.11.34/vCenter-CB/api/hierarchy/696/entity/697/costModel/701/fixedCosts/values"); )
request. CookieContainer = cookieContainer;
request. Method = "PUT";
request. KeepAlive = true;
request. Timeout = 600000;
request. ContentType = "application/x-www-formulaires-urlencoded; application/x-www-form-urlencoded
streamReq = request. GetRequestStream();Reading XML file.
String strXML;
String strCurrentPath = System.IO.Directory.GetCurrentDirectory;
String strPath = "";
strPath = strCurrentPath + "\\ModifiyFixedCostXML.txt";using (StreamReader sr = new StreamReader (strPath))
{
strXML = sr. ReadToEnd();
}String strResp;
Byte [] byteArray = Encoding.UTF8.GetBytes (strXML);
streamReq.Write (byteArray, 0, byteArray.Length);
streamReq.Close ();to using (WebResponse response = request. GetResponse())
{
Stream streamResp = response. GetResponseStream();
StreamReader streamReaderResp = new StreamReader (streamResp);
strResp = streamReaderResp.ReadToEnd ();
}
Return strResp;
}XML file:
<? XML version = "1.0" encoding = "UTF-8"? >
< application >
< FixedCosts >
< FixedCost id = "1" >
values <>
< value >
< cost > 3.14 < / cost >
< span id = "1" / >
< / value >
< / value >
< / FixedCost >
< / FixedCosts >
< / request >Error messages;
<? XML version = "1.0" encoding = "UTF-8"? >
" < response xmlns =" http://www.VMware.com/vCenter/chargeback/2.0 "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " status = "Failure" > ""
< majorErrorCode error = '500' minorErrorCode = '0' message = "No such method defined or an API call lack of required arguments. / >
< / answer >
Please explain what is the problem here... Is the chargeback REST API c# 2.0 support?
Thank you
Yale
Yale,
I see the following changes are required in the application:
- URL is missing, the startTime and endTime, if the end time is not required to send it as -1. For example: http://localhost: 8080/vCenter-CB/api/fixedCost/553/values? startTime = endTime =-1 & 1340130600000
- In XML, fixed cost id must be the same as that mentioned in the URL. XML tag is
Thank you
Diomande
-
CPO 3.0 call a REST API
I try to call a remote REST API that returns a JSON object.
The call browser API looks like this
http://IPAM-dev/phpipam/API/?app_id=API&controller=sections&action=read&ID=6
Returns
{'success': true, 'data': {'id': '6', 'name': "Telford subnets", 'description': '',' masterSection': '0', 'permissions': "{\"4\":\"1\ ""} strictMode ',' ': '1', 'subnetOrdering': null, 'order': null, "editDate": null, "showVLAN": '0', 'showVRF': '0' "}}
When I try to use the OPC Web HTTP Request activity it fails with the following error
Unable to send a content-body with this type of verb.
I think the problem here is the content type. The default is application/xml; charset = utf - 8 in the activity, I tried to change this text, html and json, but still did not work. I can't let the emty content type in the activity.
Anyone have any suggestion how to make a REST of CPO call using the activity Web HTTP request
Try to change GET to POST (in the form of CALL-CPO_REST - RQ.png). Sends the contents of the body generally requires a POST not a GET.
-
Expose REST APIs on the API Oracle Gateway
Hi all
Can someone help me to OAG. I'm new on this.
I want to expose some REST API of gateway API as well as Oracle are accessible on mobile phones and browsers.
An example or a document for this help
Thank you
Laetitia
What version of Oracle application Gateway you use, if you use of the OAG version 11.1.2.4.0 then you need to install the hotfix.
Please see this document on the oracle support: Doc ID 2070998.1
Kind regards
Anshul
-
Get the 500 error trying to create a table using the REST API
Hello
I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.
Here are the details that I use to create a table.
and the json to create the schema that I use is
[{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]
, {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},
{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}
, {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},
{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},
{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},
{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},
{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},
{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},
{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},
{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},
[{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]
I tried this using postman and code, but I always get the following response error:
Error 500 - Internal server error
Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:
10.5.1 500 internal Server Error
The server encountered an unexpected condition which prevented him from meeting the demand.
I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.
Thank you
Romaric
I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):
curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k
[
{
'columnName': 'ID',
'dataType': 'DECIMAL ',.
'Length': 20,.
"accuracy": 0.
'Nullable': false
},
{
'columnName': 'NAME',
'dataType': 'VARCHAR ',.
'Length': 20,.
"accuracy": 0.
'Nullable': true
},
{
"columnName': 'STATUS."
'dataType': 'VARCHAR ',.
'Length': 20,.
"accuracy": 0.
'Nullable': true
},
{
"columnName': 'CREATED_DATE."
'dataType': 'TIMESTAMP '.
'Length': 20,.
"accuracy": 0.
'Nullable': true
},
{
'columnName': 'UPDATED_DATE ',.
'dataType': 'TIMESTAMP '.
'Length': 20,.
"accuracy": 0.
'Nullable': true
}
]
Maybe you are looking for
-
I tried to download a book on my shelf in the corner, but I was told that my OS was not the right one. It's never happened before. What's the story?
-
I use a computer laptop, just reinstalled everything and now have Firefox 9.1 and tells me that is not compatible with my antivirus, Trend Micro Titanium. I am running Windows 7.
-
With numbers 3.2 How to get the current date on print
I insert the date in the header: Insert > Date & Time Format choose and set today's Date. However, when I print this SS next week, I want the date to next week to automatically appear. How do I do that? Thank you Owen
-
Could not open the page to update windows with the error 80072efe
Could not open the page to update windows with the error 80072efe
-
DMA2100 Wireless keeps resetting or disconnection
I have a dsl with built-in router n wireless modem. My guard dma2100 media extender find and drop the signal for some reason any. Them is not interfernace of the system as I tired of to move around the dma2100. I even got it 2 feet away routher an