Announcement

Collapse
No announcement yet.

Can MvCALL do HTTP "PATCH" requests?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can MvCALL do HTTP "PATCH" requests?

    Hi folks,

    I was just reading the specs on MailChimp's new API version 3.0, and discovered that it will be mandatory next year as version 2.0 is being turned off. Along with the usual GETs, PUTs, POSTS, and DELETEs, version 3.0 also requires the PATCH method for some requests. I didn't even know this existed, but I found some specs on-line(https://tools.ietf.org/html/rfc5789); apparently it's not new.

    Is there any way to make this type of request with MvCALL?

    ----- Follow-up: ----- I just did some reading of MailChimp's docs, and I found this:
    Note
    If your ISP doesn’t permit HTTP operations other than GET or POST, use HTTP Method tunneling: make your call with POST, but include the method you intend to use in an X-HTTP-Method-Override header.
    I suppose that will handle it for MailChimp. But in case a server doesn't support tunneling, is there another way? ----- -----

    Thanks --
    Last edited by Kent Multer; 11-10-16, 08:50 PM.
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    I'll check with development, but from the docs, PATCH does not look like a supported method for MvCALL.

    Also, it is worth noting that we are going to be rebuilding our mailchimp integration next year to support their v3 API as well.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Brennan, what did your investigation turn up? I have a client that is also wanting integration with MailChimp and they need a PATCH call. I tried MvCALL with PATCH and it looks like it is doing a GET (or at least the MailChimp api is responding like it is).

      Michael

      Comment


        #4
        As of version Empresa 5.28 MvCALL now supports PATCH, LINK and UNLINK.
        METHOD = "GET|POST|HEAD|XML|RAW|OPTIONS|PUT|DELETE|TRACE|CO NNECT|PATCH|LINK|UNLINK" See MvCALL.html Scroll down to Methods.
        Ray Yates
        "If I have seen further, it is by standing on the shoulders of giants."
        --- Sir Isaac Newton

        Comment

        Working...
        X