Results 1 to 2 of 2

Thread: JSON Request format

  1. #1
    fmatar is offline Intermediate Member
    Join Date
    Aug 2010
    Posts
    17
    Rep Power
    5

    Default JSON Request format

    What is the format of sending a JSON request via an http client? More specifically what is the parameter name where the json request is embedded to the post form?

    For an Authrequest I guess it would be something like

    Code:
    https://host:7071/services/admin/soap/AuthRequest?value=<json>

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Code:
    $request = array(
                    "Header" => array(
                            "context" => array(
                                    "_jsns" => "urn:zimbra",
                            ),
                    ),
                    "Body" => array(
                            "AuthRequest" => array(
                                    "_jsns" => "urn:zimbraAccount",
                                    "account" => "account@somedomain.com",
                                    "preauth timestamp=$timestamp expires=0" => array(
                                            "_content" => $preauthToken,
                                    ),
                            ),
                    ),
            );

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Change default Format of Meeting Request Message
    By Hatrix in forum Administrators
    Replies: 0
    Last Post: 09-11-2009, 07:07 AM
  2. SOAP <-> JSON format
    By fernandoflorez in forum Developers
    Replies: 0
    Last Post: 02-22-2009, 12:11 PM
  3. zmprov mc default zimbraFeatureNotebookEnabled TRUE
    By nbhanji in forum Installation
    Replies: 11
    Last Post: 04-29-2008, 10:39 AM
  4. DNS Questions and Trouble Installing
    By smurraysb in forum Installation
    Replies: 22
    Last Post: 03-14-2008, 03:27 PM
  5. Error loading on Mac OS X 10.4.10 server PPC
    By qprcanada in forum Installation
    Replies: 7
    Last Post: 10-26-2007, 06:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •