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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
|
Account
=======
.. index::
pair: method; user.validateUsername
.. _user-validateUsername:
Validate username
-----------------
:Method: user.validateUsername
This method can be used before authenticating a user with
:ref:`auth-userLogin`, but requires a valid :ref:`auth-partnerLogin`.
.. csv-table::
:header: Name,Type,Description
username,string,
.. csv-table::
:header: Name,Type,Description
isValid,boolean,
isUnique,boolean,
.. index::
pair: method; user.createUser
.. _user-createUser:
Create new account
------------------
:Method: user.createUser
.. csv-table::
:header: Name,Type,Description
username,string,
password,string,
gender,string,
birthYear,int,
zipCode,int,
emailOptIn,boolean,
countryCode,string,
accountType,string,``registered``,
registeredType,string,``user``,
includePandoraOneInfo,boolean,
includeAccountMessage,boolean,
returnCollectTrackLifetimeStats,boolean,
returnIsSubscriber,boolean,
xplatformAdCapable,boolean,
includeFacebook,boolean,
includeGoogleplay,boolean,
includeShowUserRecommendations,boolean,
includeAdvertiserAttributes,boolean,
.. TODO response?
.. _settingkeys:
Settings
--------
The following settings are currently read/writeable:
.. csv-table::
:header: Name,Type,Description
gender,string,``Male`` or ``Female``
birthYear,int,
zipCode,string,
isProfilePrivate,boolean,
enableComments,boolean,
emailOptIn,boolean,
emailComments,boolean,
emailNewFollowers,boolean,
isExplicitContentFilterEnabled,boolean,
isExplicitContentFilterPINProtected,boolean,
newUsername,string,
newPassword,string,
facebookAutoShareEnabled,boolean,
autoShareTrackPlay,boolean,
autoShareLikes,boolean,
autoShareFollows,boolean,
facebookSettingChecksum,boolean,
.. index::
pair: method; user.getSettings
.. _user-getSettings:
Retrieve
^^^^^^^^
:Method: user.getSettings
.. csv-table::
:header: Name,Type,Description
includeFacebook,boolean,
See :ref:`settingkeys` for return values.
.. index::
pair: method; user.changeSettings
.. _user-changeSettings:
Modify
^^^^^^
:Method: user.changeSettings
.. csv-table::
:header: Name,Type,Description
currentUsername,string,
currentPassword,string,
userInitiatedChange,boolean,optional
includeFacebook,boolean,optional
Additionally keys listed in :ref:`settingkeys` are permitted in the request
body.
.. index::
pair: method; user.emailPassword
.. _user-emailPassword:
Recover password
----------------
:Method: user.emailPassword
.. csv-table::
:header: Name,Type,Description
username,string,
.. TODO response?
.. index::
pair: method; user.canSubscribe
.. _user-canSubscribe:
Get subscriber status
---------------------
:Method: user.canSubscribe
Returns whether a user is subscribed or if they can subscribe to Pandora One.
Can be useful to determine which :ref:`Partner password<partners>` to use.
.. csv-table::
:header: Name,Type,Description
iapVendor,string,(optional)
.. csv-table::
:header: Name,Type,Description
canSubscribe,boolean,false if user is a Pandora One subscriber
isSubscriber,boolean,true if user is a Pandora One Subscriber
.. code:: json
{
"stat": "ok",
"result": {
"canSubscribe": false,
"isSubscriber": true
}
}
.. index::
pair: method; user.getUsageInfo
.. _user-getUsageInfo:
Usage info
----------
:Method: user.getUsageInfo
The request has no parameters.
.. csv-table::
:header: Name,Type,Description
accountMonthlyListening,int,
deviceMonthlyListening,int,
monthlyCapHours,int,
monthlyCapWarningPercent,int,
monthlyCapWarningRepeatPercent,int,
isMonthlyPayer,bool,
isCapped,bool,
listeningTimestamp,int,
.. code:: json
{
"stat": "ok",
"result": {
"monthlyCapWarningRepeatPercent": 10,
"monthlyCapHours": 320,
"deviceMonthlyListening": 0,
"isMonthlyPayer": false,
"isCapped": false,
"monthlyCapWarningPercent": 85,
"accountMonthlyListening": 0
}
}
.. index::
pair: method; user.startComplimentaryTrial
.. _user-startComplimentaryTrial:
Start a Complimentary Trial
---------------------------
:Method: user.startComplimentaryTrial
Starts a complimentary pandora one trial. It is unknown what constitutes a valid sponsor at this time, and as such this method will always fail.
.. csv-table::
:header: Name,Type,Description
complimentarySponsor,string,The ID of the sponsor providing the complimentary trial.
|