summaryrefslogtreecommitdiff
path: root/rest
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2017-10-29 15:48:04 +0000
committerMike Crute <mike@crute.us>2017-10-29 15:48:04 +0000
commit112be71223bee7bb0ec859ac23c518b83de9f822 (patch)
treeac08c8242db4e210c4a0e16467cb2caaf96e90ce /rest
parentcbbcd70463862c5aac1c2467d70895a77bdb96b3 (diff)
downloadpandora-apidoc-112be71223bee7bb0ec859ac23c518b83de9f822.tar.gz
pandora-apidoc-112be71223bee7bb0ec859ac23c518b83de9f822.tar.bz2
pandora-apidoc-112be71223bee7bb0ec859ac23c518b83de9f822.zip
Fix typos, move implementation
Diffstat (limited to 'rest')
-rw-r--r--rest/authentication.rst2
-rw-r--r--rest/implementations.rst11
-rw-r--r--rest/index.rst9
3 files changed, 6 insertions, 16 deletions
diff --git a/rest/authentication.rst b/rest/authentication.rst
index 763ddcc..191da4e 100644
--- a/rest/authentication.rst
+++ b/rest/authentication.rst
@@ -9,7 +9,7 @@ Authentication
User Login
==========
-:Endpoint: /v1/login
+:Endpoint: /v1/auth/login
Request
-------
diff --git a/rest/implementations.rst b/rest/implementations.rst
deleted file mode 100644
index 06cbcf7..0000000
--- a/rest/implementations.rst
+++ /dev/null
@@ -1,11 +0,0 @@
-===============
-Implementations
-===============
-
-.. index::
- single: Implementations
-
-A list of open source Pandora REST API implementations.
-
-.. csv-table::
- :header: Name, Used in client, Language, Remarks
diff --git a/rest/index.rst b/rest/index.rst
index a0cd991..f43d797 100644
--- a/rest/index.rst
+++ b/rest/index.rst
@@ -12,7 +12,6 @@ REST API
ads
endpoints
errorcodes
- implementations
The Pandora REST API is used by modern Pandora apps including the website and
the various mobile apps provided by Pandora. The current REST API has multiple
@@ -23,9 +22,9 @@ feature set evolves. The main endpoint is:
- https://www.pandora.com/api/
All requests are JSON-encoded and sent via HTTP POST body to the endpoints over
-HTTPS. Response bodies are JSON-encoded values. Unlike the JSON v5 API there is
-no requirement for time syncronization, Blowfish cryptography, or partner
-logins.
+HTTPS. Requests require a ``Content-Type`` header of ``application/json``.
+Response bodies are JSON-encoded values. Unlike the JSON v5 API there is no
+requirement for time syncronization, Blowfish cryptography, or partner logins.
The API requires a cookie aware client as several cookies will be issued during
authentication that **must** be present in every request. Failure to provide
@@ -48,6 +47,7 @@ cookie in each request.
POST /api/v1/auth/login HTTP/1.1
Host: www.pandora.com
+ Content-Type: application/json;charset=utf-8
X-CsrfToken: 123456a7889b1c23
X-AuthToken:
@@ -65,6 +65,7 @@ the auth token obtained during login. It is acceptable to include the
POST /api/v1/station/getStations HTTP/1.1
Host: www.pandora.com
+ Content-Type: application/json;charset=utf-8
X-CsrfToken: 123456a7889b1c23
X-AuthToken: dGhpcyBpcyBqdXN0IGFuIGV4YW1wbGUgY29kZQo=