Connector API v1

From Memsource
Jump to: navigation, search

List Connectors

action: /api2/v1/connectors
    token                       string
                                // method GET needs to be used

   
response: JSON

{
   "totalCount": 1,
   "connectors": [
       {
           "type": "DRUPAL",
           "createdAt": "2017-03-20T12:28:28+0000",
           "createdBy": {
               "id": "164885",
               "name": "Memsourcetutorials"
           },
           "id": "ZGyuB2Tgx6W1iWS0aTUkG9",
           "localToken": "909c94bd-59e5-4205-ae61-2a50a72f61fd",
           "automatedProjectSettings": null,
           "name": "Drupal Connector",
           "organization": {
               "id": "36214",
               "name": "Memsource Tutorials"
           }
       }
   ]
}

Get Connector Info

action: /api2/v1/connectors/{connectorId}
                           
                           // method GET needs to be used
                           // the entire {connectorId} section needs to be replaced with the actual Id
  
response: JSON
  
{
   "type": "DRUPAL",
   "createdAt": "2017-03-20T12:28:28+0000",
   "createdBy": {
       "id": "164885",
       "name": "Memsourcetutorials"
   },
   "id": "ZGyuB2Tgx6W1iWS0aTUkG9",
   "localToken": "909c94bd-59e5-4205-ae61-2a50a72f61fd",
   "automatedProjectSettings": [],
   "name": "Drupal Connector",
   "organization": {
       "id": "36214",
       "name": "Memsource Tutorials"
   }
}