Coder Social home page Coder Social logo

.GET issue about mailjet-apiv3-java HOT 3 CLOSED

mailjet avatar mailjet commented on August 22, 2024
.GET issue

from mailjet-apiv3-java.

Comments (3)

Gormador avatar Gormador commented on August 22, 2024

Hi @kaveiros,

I'm not sure of what you are trying to achieve here. Though I can answer you on one point: the ApiKeyTotals resource is specific to the API key pair that you are using to issue the call. A simple .Get on the resource should be enough to obtain the result, as written in the reference:

cl.createCall(ApiKeyTotals.Get)
  .execute();

Regarding the CampaignStatistics resource, you need to specify a CampaignID as, again, written in the doc ;-)

I would advise you to read our guides and, in particular, the part about the API in the Getting Started guide.

Cheers.
Gaëtan

from mailjet-apiv3-java.

ODGithub avatar ODGithub commented on August 22, 2024

Ok i think i understand a bit.

  1. In the ApiKeyTotals there is no View part, and the documentation is wrong by stating that in the View tab:  
    # access the apikeytotals resource identified by $ID
    curl -s -X GET \ --user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE"
    https://api.mailjet.com/v3/REST/apikeytotals/$ID                 

  2. Regarding the CampaignStatistics the same issue exists, even more obvious as to what i cannot perceive. It states in the View part that:

# access the campaignstatistics resource identified by $ID
curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \             
https://api.mailjet.com/v3/REST/campaignstatistics/$ID

# access the resource through the CustomValue's value
# note: all keys marked as 'unique' may be used as an alternate ID
curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/campaignstatistics/$CustomValue

Where are those stats? Should i consider something specific as they are Campaign stats?

Thank you in advance
OD

from mailjet-apiv3-java.

WeshGuillaume avatar WeshGuillaume commented on August 22, 2024

Hey! ✈️

We released a new version for this wrapper. It's a lighter/simpler version of the old one. Check it out:
https://github.com/mailjet/mailjet-apiv3-java/tree/v3.0.0

from mailjet-apiv3-java.

Related Issues (20)

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.