9.2.1. Basic API Authentication

This is an example for how to authenticate against the SOAP API

9.2.1.1. Step 1 - Authenticate to the SOAP API via /auth

1
2
3
4
5
6
7
8
{
  "Accept": "*/*",
  "Accept-Encoding": "gzip, deflate",
  "Connection": "keep-alive",
  "User-Agent": "python-requests/2.7.0 CPython/2.7.10 Darwin/14.5.0",
  "password": "VGFuaXVtMjAxNSE=",
  "username": "QWRtaW5pc3RyYXRvcg=="
}
  • Response Headers:
1
2
3
4
5
{
  "connection": "keep-alive",
  "content-length": "134",
  "content-type": "text/plain; charset=us-ascii"
}

9.2.1.2. Step 2 - Get the server version via /info.json

1
2
3
4
5
6
7
{
  "Accept": "*/*",
  "Accept-Encoding": "gzip, deflate",
  "Connection": "keep-alive",
  "User-Agent": "python-requests/2.7.0 CPython/2.7.10 Darwin/14.5.0",
  "session": "1-607-4ee03e3500179ebb0e13b0a7fa723076479968c2bdd0556160e8973b1f7836e3fc6904187f022cf0e42591f6694489d48085138a841cb660ecc047bb0551bdfd"
}
  • Response Headers:
1
2
3
4
5
{
  "connection": "keep-alive",
  "content-length": "19289",
  "content-type": "application/json"
}

Footnotes

[1]this file automatically created by BUILD/build_api_examples.py