dyninc / dyn-java Goto Github PK
View Code? Open in Web Editor NEWDyn SDK for Java
License: Other
Dyn SDK for Java
License: Other
I tried to send emails with xheaders like this:
SendMailApi client = dyn.getSendMailApi();
// just for testing
String xHeader = "X-Test-Analytics=test,X-Test-Id=123";
return new SendResponse(client.sendMessage(from, to, subject, null, body, null, from, xHeader));
to a gmail account. Emails went through but X-DynectEmail-X-Headers:
is empty.
I checked the sent reports in Dyn UI and the send records are shown there. However, if I try to filter the result with the specified xheaders above, search result returns 0.
Hello,
I'm running "mvn clean install" to generate a jar file and it's currently failing on the tests:
Running TestSuite
Jun 13, 2014 2:14:46 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /Session HTTP/1.1 and responded: HTTP/1.1 200 OK
Jun 13, 2014 2:14:46 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /Zone HTTP/1.1 and responded: HTTP/1.1 200 OK
Jun 13, 2014 2:14:46 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /Session HTTP/1.1 and responded: HTTP/1.1 200 OK
Jun 13, 2014 2:14:46 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /Zone HTTP/1.1 and responded: HTTP/1.1 200 OK
Jun 13, 2014 2:14:46 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /Session HTTP/1.1 and responded: HTTP/1.1 200 OK
Jun 13, 2014 2:14:46 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /Zone HTTP/1.1 and responded: HTTP/1.1 200 OK
Tests run: 130, Failures: 8, Errors: 0, Skipped: 29, Time elapsed: 8.275 sec <<< FAILURE!
Results :
Failed tests:
setup(com.dyn.client.v3.traffic.features.GeoRegionGroupApiLiveTest): property dyn.identity not present in properties: [jclouds.user-threads, jclouds.max-session-failures, jclouds.relax-hostname, jclouds.max-connection-reuse, jclouds.endpoint, jclouds.scheduler-threads, jclouds.build-version, jclouds.iso3166-codes, jclouds.retries-delay-start, jclouds.max-redirects, jclouds.so-timeout, jclouds.max-connections-per-host, jclouds.max-connections-per-context, jclouds.strip-expect-header, jclouds.io-worker-threads, jclouds.api, jclouds.api-version, jclouds.payloads.pretty-print, jclouds.trust-all-certs, jclouds.connection-timeout, jclouds.provider, jclouds.session-interval]
setup(com.dyn.client.v3.traffic.features.GeoServiceApiLiveTest): property dyn.identity not present in properties: [jclouds.user-threads, jclouds.max-session-failures, jclouds.relax-hostname, jclouds.max-connection-reuse, jclouds.endpoint, jclouds.scheduler-threads, jclouds.build-version, jclouds.iso3166-codes, jclouds.retries-delay-start, jclouds.max-redirects, jclouds.so-timeout, jclouds.max-connections-per-host, jclouds.max-connections-per-context, jclouds.strip-expect-header, jclouds.io-worker-threads, jclouds.api, jclouds.api-version, jclouds.payloads.pretty-print, jclouds.trust-all-certs, jclouds.connection-timeout, jclouds.provider, jclouds.session-interval]
setup(com.dyn.client.v3.traffic.features.HttpRedirectApiLiveTest): property dyn.identity not present in properties: [jclouds.user-threads, jclouds.max-session-failures, jclouds.relax-hostname, jclouds.max-connection-reuse, jclouds.endpoint, jclouds.scheduler-threads, jclouds.build-version, jclouds.iso3166-codes, jclouds.retries-delay-start, jclouds.max-redirects, jclouds.so-timeout, jclouds.max-connections-per-host, jclouds.max-connections-per-context, jclouds.strip-expect-header, jclouds.io-worker-threads, jclouds.api, jclouds.api-version, jclouds.payloads.pretty-print, jclouds.trust-all-certs, jclouds.connection-timeout, jclouds.provider, jclouds.session-interval]
setup(com.dyn.client.v3.traffic.features.RecordApiLiveTest): property dyn.identity not present in properties: [jclouds.user-threads, jclouds.max-session-failures, jclouds.relax-hostname, jclouds.max-connection-reuse, jclouds.endpoint, jclouds.scheduler-threads, jclouds.build-version, jclouds.iso3166-codes, jclouds.retries-delay-start, jclouds.max-redirects, jclouds.so-timeout, jclouds.max-connections-per-host, jclouds.max-connections-per-context, jclouds.strip-expect-header, jclouds.io-worker-threads, jclouds.api, jclouds.api-version, jclouds.payloads.pretty-print, jclouds.trust-all-certs, jclouds.connection-timeout, jclouds.provider, jclouds.session-interval]
tearDown(com.dyn.client.v3.traffic.features.RecordApiLiveTest)
setup(com.dyn.client.v3.traffic.features.SessionApiLiveTest): property dyn.identity not present in properties: [jclouds.user-threads, jclouds.max-session-failures, jclouds.relax-hostname, jclouds.max-connection-reuse, jclouds.endpoint, jclouds.scheduler-threads, jclouds.build-version, jclouds.iso3166-codes, jclouds.retries-delay-start, jclouds.max-redirects, jclouds.so-timeout, jclouds.max-connections-per-host, jclouds.max-connections-per-context, jclouds.strip-expect-header, jclouds.io-worker-threads, jclouds.api, jclouds.api-version, jclouds.payloads.pretty-print, jclouds.trust-all-certs, jclouds.connection-timeout, jclouds.provider, jclouds.session-interval]
setup(com.dyn.client.v3.traffic.features.ZoneApiLiveTest): property dyn.identity not present in properties: [jclouds.user-threads, jclouds.max-session-failures, jclouds.relax-hostname, jclouds.max-connection-reuse, jclouds.endpoint, jclouds.scheduler-threads, jclouds.build-version, jclouds.iso3166-codes, jclouds.retries-delay-start, jclouds.max-redirects, jclouds.so-timeout, jclouds.max-connections-per-host, jclouds.max-connections-per-context, jclouds.strip-expect-header, jclouds.io-worker-threads, jclouds.api, jclouds.api-version, jclouds.payloads.pretty-print, jclouds.trust-all-certs, jclouds.connection-timeout, jclouds.provider, jclouds.session-interval]
tearDown(com.dyn.client.v3.traffic.features.ZoneApiLiveTest)
Tests run: 130, Failures: 8, Errors: 0, Skipped: 29
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.038s
[INFO] Finished at: Fri Jun 13 14:14:51 PDT 2014
[INFO] Final Memory: 19M/234M
[INFO] ------------------------------------------------------------------------
Though my properties are set in pom.xml:
<properties>
<test.dynect.endpoint>https://api2.dynect.net/REST</test.dynect.endpoint>
<test.dynect.api-version>3.3.8</test.dynect.api-version>
<test.dynect.build-version>1.0</test.dynect.build-version>
<test.dynect.identity>customerName:userName</test.dynect.identity>
<test.dynect.credential>password</test.dynect.credential>
...
</properties>
Also what should I set for test.dynect.build-version?
Am I missing something?
Thanks!
i want to add multiple address in to field , i have tried with
System.out.println("send : "+ send.sendMessage("[email protected]", "to[]=[email protected]&to[]=[email protected]&to[]=[email protected]", "the subject", "hi text", " html","[email protected]", "[email protected]", null));
but it gives
Missing or Invalid Required Fields; content: [{"response":{"status":452,"message":"Missing or Invalid Required Fields","data":"Bad recipient:
How i can add multiple recipients ?
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.