GithubHelp home page GithubHelp logo

dyn-java's People

Contributors

sunnygleason avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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

dyn-java's Issues

xheaders are not sent

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.

Issue building with maven

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!

Can not add multiple recipients

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 ?

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.