Git Product home page Git Product logo

java-sdk's People

Contributors

acase1094 avatar aguriuc avatar alexandrurosu29 avatar cristiana-rotar avatar csciuto avatar dsjellz avatar egaiter avatar funmark avatar ggrell avatar harshithagb avatar richm541 avatar thegravee avatar woogienoogie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-sdk's Issues

Paginated API calls should be available through the services directly.

As an example, the getContacts method in IContactService (https://github.com/constantcontact/java-sdk/blob/master/src/main/java/com/constantcontact/services/contacts/IContactService.java) does not support pagination. It returns an object (ResultSet), that contains an object (Meta), that contains the Pagination object inside of it. This object must then be passed to the PaginationHelperService (https://github.com/constantcontact/java-sdk/blob/master/src/main/java/com/constantcontact/pagination/PaginationHelperService.java) to get the next page. We should have overloaded versions of the methods that take the Pagination object like the .NET version does. An example can be seen here: https://github.com/constantcontact/.net-sdk/blob/master/CTCTWrapper/Services/ContactService.cs

ServiceException message gets swallowed

There are places in the code where we are throwing a ServiceException and then catching it and wrapping it in a ServiceException. For example, the Bulk Import API. This is a problem because the constructor loses the exception's message, making it very difficult to figure out what went wrong. We should either fix the Constructor or not catch the exception.

ArchiveURL, Archivestatus still in SDK

A developer brought up the issue in this community post:
https://community.constantcontact.com/t5/Developer-Support-ask-questions/ArchiveURL-missing-from-Campaign-details-in-API-v2/m-p/229439#M9145

They always return null, but it's raising questions with developers, causing confusion, hesitation.

We have by design removed support for email campaign archive_url and archive_status in AppConnect, but the functions still exist.

https://github.com/constantcontact/java-sdk/blob/master/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignBase.java

https://github.com/constantcontact/java-sdk/blob/master/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignRequest.java

"Created_date" not supported for ContactLists

JSON parsing for contact list objects no longer works as the JSON string contains a "Created_date" which is not implemented in ContactList.Java.

Either the fields needs to be added to the Pojo, or (as we did) change the parser policy to ignore unkown properties.

We changed Component.java and added to the listFromJson method following line : mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

Ronny.

getDetailedStatusReport not working

Hi all
I try to get the DetailedStatusReport for activity to poll the activity status until it is completed.
I am using getDetailedStatusReport and getting errors from constantContact.

RawApiRequestError [errorKey=query.param.invalid, errorMessage=The query parameter id is not supported.]
RawApiRequestError [errorKey=url, errorMessage=https://api.constantcontact.com/v2/activities?type=ADD_CONTACTS&id=9420c040-fdc0-11e4-9f58-d4ae527548e1]

Look like the id parameter should be in the url path and not in query args

By the way do addContacts command check for the status of the activity before returning the Result or should i handle it myself?
Thanks!
Yuval Perelman

Updating a contact with a pre-existing "note" results in error

I am updating a contact w/ a pre-existing "note" (not set by the api).

I am not manipulating the note just updating another field on the contact.

No matter what I do I get back

"json.field.note.too.many: Only one note is allowed"

The only way around it is to do this "contactToSave.setNotes(null);"

There is no way to even append data to an existing note!

Publish artifacts to maven repository

Is there a reason there aren't any artifacts published to a central Maven repository? Makes it somewhat cumbersome to get up and running with the Java SDK.

Cannot close inputstream after call bulkContactUploadMultipart

Hi,

I have been having a few issues with using the api for uploading xls files. Basically, we have a large number of repetitive eMails going out and I have built an app that streamlines the uploading of the lists.

I note that addBulkContactsMultipart opens a fileinputstream, which is then used in MutipartBuilder.buildMultipartBody, but it is not closed meaning the file remains locked after the method has returned. Shouldn't the filestream be closed after the filestream has been consumed?

Cheers,

James

Delete email campaign?

Noticed that there is no ability to delete an email campaign in this API? Is this going to be added?

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.