Giter Site home page Giter Site logo

marketing-php's People

Contributors

dlambaplogic avatar jagdeep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

marketing-php's Issues

Product/Revenue

Create the ProductAndRevenue class with the API methods:

  • getOrder (GET /orders/:order_id)
  • createOrder (POST /orders)
  • updateOrder (PUT /orders/:original_order_id)
  • updateOrder (PUT /orders/find(.:format)?where[id]=order_id)
  • deleteOrder (DELETE /orders/:original_order_id)
  • deleteOrder (DELETE /orders/find)

Note that there are API methods that are not listed herein.

Transactional Campaigns

Create the TransactionalCampaigns class with the API methods:

  • get (GET /transactional_campaigns(.:format))
  • create (POST /transactional_campaigns)
  • sendEmail (POST /emails/delivers)

Note that there are API methods that are not listed herein.

Campaigns

Create the Campaigns class with the API methods:

  • get (GET /campaigns(.:format))
  • getDeliveredReports (GET /campaigns/:id/delivered_report)
  • getOpenReports (GET /campaigns/:id/open_report)
  • getClickReports (GET /campaigns/:id/click_report)
  • getLinkReports (GET /campaigns/:id/link_report)
  • getBounceReports (GET /campaigns/:id/bounce_report)
  • getSoftBounceReports (GET /campaigns/:id/soft_bounce_report)
  • getHardBounceReports (GET /campaigns/:id/hard_bounce_report)
  • getUnsubscribeReports (GET /campaigns/:id/unsubscribe_report)
  • getComplaintReports (GET /campaigns/:id/complaint_report)

Note that there are API methods that are not listed herein.

AB Campaigns

Create the AB Campaigns class with method:

  • createAbTest (POST /compaigns/ab_test)

Reports

Create the Reports class with the API methods:

  • get (GET /reports(.:format))
  • getOpens (GET /reports/opens)
  • getClicks (GET /reports/clicks)
  • getBounces (GET /reports/bounces)
  • getUnsubscribes (GET /reports/unsubscribes)
  • getComplaints (GET /reports/complaints)
  • getAbReports (GET /reports/ab_reports)
  • getJourneys (GET /reports/journeys)

Note that there are API methods that are not listed herein.

Journeys

Create the Journeys class with the API methods:

  • get (GET /journeys)
  • getCampaigns (GET /journeys/:journey_id/journey_campaigns)
  • getContacts (GET /journeys/:journey_id/journey_contacts)
  • stopAll (PUT /journeys/stop_all_journeys)
  • pauseJourneyForContact (PUT /journeys/:journeyId/stop/:contactId)
  • pauseJourneyForUid (PUT /journeys/:journeyId/stop/:uid)
  • resetJourneyForContact (PUT /journeys/:journeyId/stop/:contactId)
  • resetJourneyForUid (PUT /journeys/:journeyId/stop/:uid)
  • startJourneyForContact (PUT /journeys/:journeyId/start/:contactId)
  • startJourneyForUid (PUT /journeys/:journeyId/start/:uid)

Note that there are API methods that are not listed herein.

REST API bugs

I've just noticed a bug in the REST API itself.
When PUTing an order update to https://api.maropost.com/accounts/1000/orders/find.json?where[id]={NNNN}&auth_token={XXXX}, I attempt to include order_date and coupon_code in the payload body, per the api documentation.
When I pull the order again via GET, the order_status and order_items are properly updated, but the order_date and coupon_code are not. My PUT payload body is below:

{
    "order": {
        "order_date": "2018-01-01T15:00:00-07:00",
        "order_status": "Shipped",
        "campaign_id": null,
        "coupon_code": "ccUpdated",
        "order_items": [
            {
                "item_id": "7",
                "price": "5",
                "quantity": "7",
                "description": "book",
                "adcode": "adc1",
                "category": "asdf"
            },
            {
                "item_id": "9",
                "price": "1350",
                "quantity": "1",
                "description": "movie",
                "adcode": "adc1",
                "category": "poiu"
            }
        ]
    }
}

Contacts

Create the Contacts class with the API methods:

  • getForEmail (/contacts/email)
  • getOpens (GET /contacts/:contact_id/open_report)
  • getClicks (GET /contacts/:contact_id/click_report)
  • getForList (GET /lists/:list_id/contacts)
  • createOrUpdateForList (POST /lists/:list_id/contacts)
  • createOrUpdateContact (PUT /contacts/:contact_id)
  • createOrUpdateContacts (POST /contacts)
  • deleteAll (DELETE /contacts/deleteAll)
  • deleteContact (DELETE /contacts/:contact_id)
  • deleteContactForUid (DELETE /contacts/uid)
  • deleteListContact (DELETE /lists/:list_id/contacts/:contact_id)
  • unsubscribeAll (PUT /contacts/unsubscribe_all)

Note that there are API methods that are not listed herein.

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.