Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-3726

The rest interface works without cookies and serves json

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      As discussed there with Lobo:
      http://forum.civicrm.org/index.php/topic,5230.0.html

      To get json, add &json=1 in the get chain.

      Might be better to have :
      /extern/xml.php
      and
      /extern/json.php

      instead of
      /extern/rest.php for both ?

      The second file is a bare example of a class to use the rest interface. I intent to extend it to make is something good enough to be part of the civi distrib.

        Attachments

        1. query.php
          3 kB
          xavier dutoit
        2. rest.in.peace.diff
          1 kB
          xavier dutoit
        3. rest.thereturn.php
          2 kB
          xavier dutoit

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: