summaryrefslogtreecommitdiff
path: root/json/bookmarks.rst
blob: 60b1e753fb18700caf742f2649d874ecfef772a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
Bookmarks
=========

Users can bookmark artists or songs.


.. index::
   pair: method; user.getBookmarks

.. _user-getBookmarks:

Retrieve bookmarks
------------------

:Method: user.getBookmarks

The request has no parameters.

.. code:: json

    {
        "stat":"ok",
        "result": {
            "artists": [
                {
                    "musicToken": "R130360",
                    "artistName": "Cannabich, Christian",
                    "artUrl": "http://cont-sv5-2.pandora.com/images/public/amz/5/2/9/7/095115137925_500W_488H.jpg",
                    "bookmarkToken": "80982345262345234",
                    "dateCreated": {
                        "nanos": 300000000,
                        "seconds": 22,
                        "year": 112,
                        "month": 4,
                        "hours": 11,
                        "time": 1350566223422,
                        "date": 23,
                        "minutes": 01,
                        "day": 2,
                        "timezoneOffset": 720
                    }
                }
            ],
            "songs": [
                {
                    "sampleUrl": "http://www.pandora.com/favorites/getSample.jsp?token=32458973245b90287345d0234fc34f8b&allowExplicit=true",
                    "sampleGain": "-7.87",
                    "albumName": "Symphony In G Major",
                    "artistName": "Cannabich, Christian",
                    "musicToken": "S2894329",
                    "dateCreated": {
                        "nanos": 300000000,
                        "seconds": 22,
                        "year": 112,
                        "month": 4,
                        "hours": 11,
                        "time": 1350566223422,
                        "date": 23,
                        "minutes": 01,
                        "day": 2,
                        "timezoneOffset": 720
                    },
                    "artUrl": "http://cont-sv5-2.pandora.com/images/public/amz/5/2/9/7/095115137925_500W_488H.jpg",
                    "bookmarkToken": "290832123432459854",
                    "songName": "London Mozart Players, Christian Cannabich: Symphonies"
                }
            ]
        }
     
     }


.. index::
   pair: method; bookmark.addArtistBookmark

.. _bookmark-addArtistBookmark:

Add artist bookmark
-------------------

:Method: bookmark.addArtistBookmark

.. csv-table::
    :header: Name ,Type ,Description

    trackToken,string,

.. code:: json

    {
        "trackToken": "f17ff6c86c11743fc890808e1a1dd6ff5b1dca1a2e260f7d998ba6e7786dd9941c5dd4b345a1008e86862353da1e6cdc78172b4199240c76",
        "userAuthToken": "XXX",
        "syncTime": 1338210690
    }

.. code:: json

    {
        "stat": "ok",
        "result": {
            "artistName": "Wallis Bird",
            "dateCreated": {
                "date": 2,
                "day": 3,
                "hours": 7,
                "minutes": 6,
                "month": 6,
                "seconds": 13,
                "time": 1404309973468,
                "timezoneOffset": 420,
                "year": 114
            },
            "bookmarkToken": "49854851068341741",
            "artUrl": "http://cont-dc6-2.pandora.com/images/public/amg/portrait/pic200/drP900/P998/P99805K1QKS.jpg",
            "musicToken": "R278544"
        }
    }


.. index::
   pair: method; bookmark.addSongBookmark

.. _bookmark-addSongBookmark:

Add song bookmark
-----------------

:Method: bookmark.addSongBookmark

.. csv-table::
    :header: Name ,Type ,Description

    trackToken ,string ,

.. code:: json

    {
        "trackToken": "f17ff6c86c11743fc890808e1a1dd6ff5b1dca1a2e260f7d998ba6e7786dd9941c5dd4b345a1008e86862353da1e6cdc78172b4199240c76",
        "userAuthToken": "XXX",
        "syncTime": 1338210690
    }

.. code:: json

    {
        "stat": "ok",
        "result": {
            "sampleGain": "1.96",
            "musicToken": "S1143982",
            "bookmarkToken": "200207779061968365",
            "sampleUrl": "http://www.pandora.com/favorites/getSample.jsp?token=a74b4f7551e3e174425ba2910f7abf8b&allowExplicit=true",
            "albumName": "The 5th Exotic",
            "songName": "The 5th Exotic",
            "artUrl": "http://cont-sjl-1.pandora.com/images/public/amz/9/4/5/2/800002549_500W_500H.jpg",
            "dateCreated": {
                "date": 28,
                "day": 1,
                "hours": 6,
                "minutes": 11,
                "month": 4,
                "seconds": 31,
                "time": 1338210691404,
                "timezoneOffset": 420,
                "year": 112
            },
            "artistName": "Quantic"
        }
    }