Added userProfile api to Documentation

This commit is contained in:
Domenico Iezzi 2017-11-27 16:46:05 +01:00
parent 0fc9cb9fef
commit c7a3f8fc2d
No known key found for this signature in database
GPG Key ID: 7AC94D5DDA2FB7EE
2 changed files with 62 additions and 45 deletions

View File

@ -1,45 +1,41 @@
## Search # Search
### Details ## Request
**URL** GET https://android.clients.google.com/fdfe/search?c=3&q=firefox HTTP/1.1
GET https://android.clients.google.com/fdfe/search?c=3&q=firefox HTTP/1.1 Required headers are marked with a '*'
**HEADERS** [ ] X-Ad-Id: 70417864-0f86-4451-b5aa-103de27a6af5
[ ] X-DFE-Content-Filters:
Required headers are marked with a '*' [ ] X-DFE-Network-Type: 4
[*] X-DFE-Encoded-Targets: CAESqwGzlYEGDsgF3gTRAkIC2AMCFJIHgAIWjgi1AVhAmQGOA4ICb+kKmAHgAQyGAS9o8gLzAe0BFvsLuAMBAsADjwLDFYUBNS2lCJYStgEBfgegAm2xAgEoAQYo4wvDAtAFqwIB+APWArYDwgHhBf0BjAICU+MGmgGRAZsC0AFMmgPkAuUBKyHOAVIC5QECrwEYAQYBowFLYgGpBYgDhQEBY0o2SqEDggJpYYgDtAMa9gQTAg7OATu1AaABCFoCAwRrN4DTzwKCu7EDAQEDAgQJCAgBAQIIAwEBAgEBAQICAgYBBhQKAQcCAwMEAhABAQHKAQETAwQCDecBfQolAhYFAgEKG3UMMxcBIQoUDwYHIjeEAQ4MFk0JUwV/EREYAQMNfgRfHhQQIwsOcGQEDQ9qowHAAoQBBIQBAgEBfA4ZGDYVARgBCwEoZQICJShzFCehBQYRGg43GBxpjQG0AVnQAR4nCzQmL1vUAWV3CQEK3gF2A30tDAMsZJ4BBIEBdFAfcogBigHMAgUFCc0BBUWgATk4jQIaYDUuzgENcqoBASCLA5IBqAImlwNhrQKEBnbjBfgBXaEBAQ8GAQEChwQEc5YBBlVtAUUB3AUyDnuzAZIBA4YGKxihAQcwASEBBwIgCBIdB6YDOAEaRoQBAfsBQHWnARkiAqMCLBYPvAsDAoABIocBO8kBygG2AQENAyeIAx7bAVKoBIMEqgETKQSLAbIDOhAndFdEOBWjAQGNAfUBGguZAUUMCwgvWwFpGrkBDhEgP3wLuAEhBgIUAb4DFG8TIa4BjgFFBgQCAQECWUKdAmIVBAEUxwESASQLWgoeJQIChAXCAQYjFTISxwFoBSFHEAEBWcsBMU5KkgEW0wGeAQceCDtk6AEGU44CpAHRAZIBC88BegEiTV0HSgQBBLgBDSYIMB0VCwIBed8BLW4DATaWAT0odAwCXztnERRVDSoDCkM/IwfKAgIHXQwCP1Y2bgQM+QICBgcUBREEWCZMAwwUGCRVKlNjHAMGGET/AQwBCwUHBJMBAn8RBx8eTwUqAgsJCw8HFAYECgoWBFoK0wIWMwY
[ ] X-Ad-Id: 70417864-0f86-4451-b5aa-103de27a6af5 [ ] X-DFE-Cookie: <hidden>
[ ] X-DFE-Content-Filters: [*] User-Agent: Android-Finsky/8.1.72.S-all [6] [PR] 165478484 (api=3,versionCode=80817206,sdk=25,device=A0001,hardware=bacon,product=bacon,platformVersionRelease=7.1.2,model=A0001,buildId=NJH47F,isWideScreen=0,supportedAbis=armeabi-v7a;armeabi)
[ ] X-DFE-Network-Type: 4 [ ] X-DFE-Client-Id: am-android-oneplus
[*] X-DFE-Encoded-Targets: CAESqwGzlYEGDsgF3gTRAkIC2AMCFJIHgAIWjgi1AVhAmQGOA4ICb+kKmAHgAQyGAS9o8gLzAe0BFvsLuAMBAsADjwLDFYUBNS2lCJYStgEBfgegAm2xAgEoAQYo4wvDAtAFqwIB+APWArYDwgHhBf0BjAICU+MGmgGRAZsC0AFMmgPkAuUBKyHOAVIC5QECrwEYAQYBowFLYgGpBYgDhQEBY0o2SqEDggJpYYgDtAMa9gQTAg7OATu1AaABCFoCAwRrN4DTzwKCu7EDAQEDAgQJCAgBAQIIAwEBAgEBAQICAgYBBhQKAQcCAwMEAhABAQHKAQETAwQCDecBfQolAhYFAgEKG3UMMxcBIQoUDwYHIjeEAQ4MFk0JUwV/EREYAQMNfgRfHhQQIwsOcGQEDQ9qowHAAoQBBIQBAgEBfA4ZGDYVARgBCwEoZQICJShzFCehBQYRGg43GBxpjQG0AVnQAR4nCzQmL1vUAWV3CQEK3gF2A30tDAMsZJ4BBIEBdFAfcogBigHMAgUFCc0BBUWgATk4jQIaYDUuzgENcqoBASCLA5IBqAImlwNhrQKEBnbjBfgBXaEBAQ8GAQEChwQEc5YBBlVtAUUB3AUyDnuzAZIBA4YGKxihAQcwASEBBwIgCBIdB6YDOAEaRoQBAfsBQHWnARkiAqMCLBYPvAsDAoABIocBO8kBygG2AQENAyeIAx7bAVKoBIMEqgETKQSLAbIDOhAndFdEOBWjAQGNAfUBGguZAUUMCwgvWwFpGrkBDhEgP3wLuAEhBgIUAb4DFG8TIa4BjgFFBgQCAQECWUKdAmIVBAEUxwESASQLWgoeJQIChAXCAQYjFTISxwFoBSFHEAEBWcsBMU5KkgEW0wGeAQceCDtk6AEGU44CpAHRAZIBC88BegEiTV0HSgQBBLgBDSYIMB0VCwIBed8BLW4DATaWAT0odAwCXztnERRVDSoDCkM/IwfKAgIHXQwCP1Y2bgQM+QICBgcUBREEWCZMAwwUGCRVKlNjHAMGGET/AQwBCwUHBJMBAn8RBx8eTwUqAgsJCw8HFAYECgoWBFoK0wIWMwY [ ] X-Limit-Ad-Tracking-Enabled: false
[ ] X-DFE-Cookie: <hidden> [ ] X-DFE-MCCMNC: 22201
[*] User-Agent: Android-Finsky/8.1.72.S-all [6] [PR] 165478484 (api=3,versionCode=80817206,sdk=25,device=A0001,hardware=bacon,product=bacon,platformVersionRelease=7.1.2,model=A0001,buildId=NJH47F,isWideScreen=0,supportedAbis=armeabi-v7a;armeabi) [*] X-DFE-Device-Id: <hidden>
[ ] X-DFE-Client-Id: am-android-oneplus [ ] X-DFE-Request-Params: timeoutMs=4000
[ ] X-Limit-Ad-Tracking-Enabled: false [*] Accept-Language: en-US
[ ] X-DFE-MCCMNC: 22201 [*] Authorization: GoogleLogin auth=<hidden>
[*] X-DFE-Device-Id: <hidden> [*] Host: android.clients.google.com
[ ] X-DFE-Request-Params: timeoutMs=4000 [ ] Connection: Keep-Alive
[*] Accept-Language: en-US [ ] Accept-Encoding: gzip
[*] Authorization: GoogleLogin auth=<hidden>
[*] Host: android.clients.google.com ## Notes
[ ] Connection: Keep-Alive Search results can be divided into two categories:
[ ] Accept-Encoding: gzip
1. Search query is *specific*.
### Notes 2. Search query is *general*.
Search results can be divided into two categories:
In the **(1)** case, the result will contain 4 DocV1 objects
1. Search query is *specific*.
2. Search query is *general*. - **doc[0]** contains only one element, which is the specific app (e.g. firefox).
- **doc[1]** corresponds to the `You Might Also Like` section, and contains other less related apps.
In the **(1)** case, the result will contain 4 DocV1 objects - **doc[2]** corresponds to the `Similar Apps` section of the play store, with nearly 20 apps.
- **doc[3]** corresponds to the `More Result` section, with nearly 20 apps related to the search query.
- **doc[0]** contains only one element, which is the specific app (e.g. firefox).
- **doc[1]** corresponds to the `You Might Also Like` section, and contains other less related apps. You can verify this behaviour by yourself reading the `search-response-specific.txt`, where the query was `firefox`.
- **doc[2]** corresponds to the `Similar Apps` section of the play store, with nearly 20 apps.
- **doc[3]** corresponds to the `More Result` section, with nearly 20 apps related to the search query. In the **(2)** case, the results contains only 1 DocV1 objects, with at most 21-22 apps. There is also a *containerMetadata* object with the URL for the next page of results.
You can verify this behaviour by yourself reading the `search-response-specific.txt`, where the query was `firefox`.
In the **(2)** case, the results contains only 1 DocV1 objects, with at most 21-22 apps. There is also a *containerMetadata* object with the URL for the next page of results.

View File

@ -0,0 +1,21 @@
# userProfile
## Request
GET https://android.clients.google.com/fdfe/api/userProfile HTTP/1.1
Required headers are marked with a '*'
[ ] X-DFE-MCCMNC: 22201
[ ] X-DFE-Logging-Id:
[*] X-DFE-Device-Id: <hidden>
[ ] X-DFE-Request-Params: timeoutMs=8000
[*] User-Agent: Android-com.android.vending/8.4.19.V-all%20%5B0%5D%20%5BFP%5D%20175058788 (api=4,versionCode=80841900,sdk=25,device=A0001,hardware=bacon,product=bacon)
[*] X-DFE-Client-Id: am-android-oneplus
[*] Authorization: GoogleLogin auth=<hidden>
[*] Accept-Language: it-IT
[*] Host: android.clients.google.com
[ ] Connection: Keep-Alive
[ ] Accept-Encoding: gzip
## Notes