Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldnt get the API Calls working #1

Closed
narramadan opened this issue Mar 6, 2014 · 3 comments
Closed

Couldnt get the API Calls working #1

narramadan opened this issue Mar 6, 2014 · 3 comments

Comments

@narramadan
Copy link

I have been trying to get this work, but always return 404 error.

I configured base url as http://api.mailjet.com/0.1

Creating newsletter as suggested in the wiki produces the below debug messages

DEBUG [org.apache.http.conn.HttpClientConnectionManager] Connecting to api.mailjet.com/178.32.48.128:80
DEBUG [org.apache.http.impl.execchain.MainClientExec] Executing request POST /0.1/newsletter?style=flat&format=json HTTP/1.1

But as per MailJet API documentation, there is no such api to create a newsletter other then to create a Campaign.

Tried with other API calls as well. API requested doesnt match with the official documentation.

Am I missing anything ?

Thanks,
Madan N

@simondelorean
Copy link

Hi Madan,

it looks like you are trying to use the new APIv3 wrapper with our current (and soon to be replaced) API v1/v2. Unfortunately that doesn't work. As long as the new API isn't out you can use the Java snippet from our dev zone as a base:
https://de.mailjet.com/docs/code/java

Hope that helps and kind regards,
Simon

@narramadan narramadan reopened this Mar 7, 2014
@narramadan
Copy link
Author

Hi Simon,

Thanks for the quick response.

The java snippet doesn't work for us, as we are willing to consume your APIs to build our application rather then just sent emails.

Is there any definite timeline for the release of API v3 ?

I can proceed to use v1 for now and can migrate to v3 when release is done, but considering v1 is not deprecated as soon as v3 is released.

Please let us know your thoughts.

Thanks,
Madan N

@simondelorean
Copy link

Hi Madan,

I can't give you an exact date for the APIv3 release but it will not take long. When APIv3 is out,
you will have plenty of time to migrate from v1.

Simon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants