constantcontact / java-sdk Goto Github PK
View Code? Open in Web Editor NEWConstant Contact Java SDK for v2 API
License: BSD 3-Clause "New" or "Revised" License
Constant Contact Java SDK for v2 API
License: BSD 3-Clause "New" or "Revised" License
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.
Noticed that there is no ability to delete an email campaign in this API? Is this going to be added?
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
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.
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
Clean checkout failed to build because Maven's default Java version was 1.3, which doesn't support generics. Should specify necessary java version as in http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html. I added the following to the pom and the project compiled without error.
[...] [...] org.apache.maven.plugins maven-compiler-plugin 3.2Found that the wrapper does not allow for pagination of contacts, and while it does allow for an offset parameter to be passed to the API, that parameter does nothing when it is tested through RESTclient.
This might not be too hard to correct, since the ResultList that is returned supports the method getMeta(), which will give you access to the pagination URL.
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.
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!
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
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.
I just wanted to note that I used this excellent library to write a service that syncs Microsoft Retail POS with constant contact.
Apache license and open source
https://github.com/rhodebump/forgebiz-sync
If you guys put together a wiki page of users, I wouldn't mind being listed!
Hi all the bulk activity import contacts support Birthday_Month and Birthday_Day fields.
And ContactData miss them i think.
Thanks
Yuval
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.