Fork me on GitHub

get_active_session

Retrieves a valid Salesforce.com session ID

Request

{
    "username"      : "[email protected]",
    "password"      : "password123",
    "org_type"      : "developer"
}       

Response

{
  "user_id": "005d0000000xxzsBBB",
  "success": true,
  "metadata_server_url": "https://na14.salesforce.com/services/Soap/m/28.0/00Dd0000000cRQK",
  "server_url": "https://na14.salesforce.com/services/Soap/u/28.0/00Dd0000000cRQK",
  "sid": "00Dd0000000cRQK!AQoAQEnPcH0rpw9f3no7kD8a.FJPvmeip7CPkRHQIbf3KBp0g0JaJAGkOJnaaB9w6hQASAtdhu22a58li.3443fdsf",
  "metadata": [
    {
      "directoryName": "classes",
      "inFolder": false,
      "metaFile": true,
      "suffix": "cls",
      "xmlName": "ApexClass",
      "text": "ApexClass",
      "title": "ApexClass",
      "key": "ApexClass",
      "folder": true,
      "checked": true,
      "select": true,
      "children": [
      ],
      "cls": "folder",
      "isLazy": true,
      "isFolder": true,
      "level": 1,
      "id": "ApexClass",
      "hasChildTypes": false
    },
    {
      "directoryName": "components",
      "inFolder": false,
      "metaFile": true,
      "suffix": "component",
      "xmlName": "ApexComponent",
      "text": "ApexComponent",
      "title": "ApexComponent",
      "key": "ApexComponent",
      "folder": true,
      "checked": true,
      "select": true,
      "children": [
      ],
      "cls": "folder",
      "isLazy": true,
      "isFolder": true,
      "level": 1,
      "id": "ApexComponent",
      "hasChildTypes": false
    }
  ]
}