GithubHelp home page GithubHelp logo

eloqua-csharp-rest-client's People

Contributors

fredericksakr avatar fredsakr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eloqua-csharp-rest-client's Issues

Form Data Example

The Readme states Models included: FormData. Can you provide an example of how to get to the formdata?

Get Email asset results in Unauthorized

Hi,

I'm attempting to retrieve an email asset with the client.Assets.Email.Get(id, Depth.complete) call, but I keep getting an exception with a 401 Unauthorized status. I tried v1/v2 services, standard URL vs data URL. I verified that my user has proper access. I verified the URL and parameters of the resulting request vs the Eloqua 10 portal; they appear to be identical, minus the xsrfToken that the portal uses.

I'm able to successfully make other calls via the client (contact search, contact activity, etc). So I don't believe there's an issue with the API user or fashion in which the call is being made. I tried the topliners forums as well, to no avail. I figure it's possible there may be a bug with the rest client, or at the very least you will be able to help.

Thanks

CustomObject endpoint always points to data/customObject

I have the following code for trying to create a CustomObject (Notice I added accountId)

List<FieldValue> coFieldValuesCreate = new List<FieldValue>()
{
    new FieldValue { id = 279, value = "[email protected]" }
};

CustomObject coCreate = new CustomObject();

if (customObjectType == CustomObjectType.Contact)
{
    coCreate.contactId = 775169;
}
else if (customObjectType == CustomObjectType.Account)
{
    coCreate.accountId = 3831189;
}

coCreate.fieldValues = coFieldValuesCreate;

CustomObject createResult = Credentials.client20.Data.CustomObject.Post(coCreate);
customObjectId = createResult.id;

I always get endpoint not found when trying to call
CustomObject createResult = myClient.Data.CustomObject.Post(myCustomObject);

I fear this is because Eloqua.Api.Rest.ClientLibrary.Models.Data.CustomObjects.CustomObjects.cs has its resource always poiting to:
[Resource("/data/customObject", "CustomObject")]

POST endpoint
/api/REST/2.0/data/customObject/{parentId}/instance

DELETE endpoint
/api/REST/2.0/data/customObject/{parentId}/instance/{id}

GET endpoint
/api/REST/2.0/data/customObject/{parentId}/instance/{id}

PUT endpoint
/api/REST/2.0/data/customObject/{parentId}/instance/{id}

How are these used?

I also tried calling
CustomObject getResult = Credentials.client20.Data.CustomObject.Get(125);

And still get endpoint not found

Note: Calls for contacts work perfectly.

Source: http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/api-Application-2.0-Custom%20object%20data.html

CustomObject doesn't contain accountId field which is needed to associate CustomObject to accounts

Custom Objects can be generated for Accounts as well, and to associate the Custom Object, an accountId is passed.

Source: http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-REST-2.0-data-customObject-%7BparentId%7D-instance-post.html

Under Body Parameter, both accountId and contactId are defined:

accountId
Type: string
The account record Id associated to this custom object data.

contactId
Type: string
The contact record Id associated to this custom object data.

FieldData Test Fail

So I have a form #249 it has 1000's of entries, when I run the test case it come back with two FormData objects with null field values. But if I overload using the search string FormId=249 I get back the objects with values.

Fail:
var data = _client.Data.FormData.Get(249);
Assert.Greater(data.fieldValues.Count, 0);

Pass:
var data = _client.Data.FormData.Get(249,"FormId=249", 1,100);
Assert.Greater(data.elements[0].fieldValues.Count, 0);

Is this by design?

Thanks,
KC

Cant use PUT POST in ContentSection

The Assets/ContentSection have a default url of /assets/contentSections in the Client. For operations like PUT and POST it should be /assets/contentSection

List of Forms

Hello,

Is it possible to pull a list of forms with fields names? I don't see a Form Model.

/assets/forms?depth={depth}&count={count}&page={page}&search={search}&orderBy={orderBy}&lastUpdatedAt={lastUpdatedAt}

Ref:
http://topliners.eloqua.com/docs/DOC-3406

Thanks,
KC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.