Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
GoneTone committed Nov 18, 2021
1 parent 9e29ef7 commit b8d6dd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/GooglePlayAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class GooglePlayAPI {
* GooglePlayAPI constructor.
*
* @param {string} email Google Mail
* @param {string} gfsID GSF ID (Google Service Framework ID)
* @param {string} gsfID GSF ID (Google Service Framework ID)
*/
constructor (email, gfsID) {
constructor (email, gsfID) {
this._email = email
this._gfsID = gfsID
this._gsfID = gsfID

this._apiEndpoint = 'https://android.clients.google.com'
this._authPath = '/auth'
Expand Down Expand Up @@ -139,7 +139,7 @@ class GooglePlayAPI {

try {
const axiosData = await axios.post(`${this._apiEndpoint}${this._authPath}`, qs.stringify({
androidId: this._gfsID.toString(),
androidId: this._gsfID.toString(),
lang: this._languageCode.toString(),
google_play_services_version: this._googlePlayServiceVersion.toString(),
sdk_version: this._sdkVersion.toString(),
Expand Down Expand Up @@ -182,7 +182,7 @@ class GooglePlayAPI {
if (token.startsWith('aas_et/')) {
try {
const axiosData = await axios.post(`${this._apiEndpoint}${this._authPath}`, qs.stringify({
androidId: this._gfsID.toString(),
androidId: this._gsfID.toString(),
lang: this._languageCode.toString(),
google_play_services_version: this._googlePlayServiceVersion.toString(),
sdk_version: this._sdkVersion.toString(),
Expand Down Expand Up @@ -213,7 +213,7 @@ class GooglePlayAPI {
'User-Agent': this._userAgent,
'Accept-Language': this._languageCode,
Authorization: `Bearer ${auth}`,
'X-DFE-Device-Id': this._gfsID,
'X-DFE-Device-Id': this._gsfID,
'X-DFE-Client-Id': this._clientID,
'X-DFE-Userlanguages': this._languageCode.replace('-', '_'),
'X-DFE-Enabled-Experiments': this._enabledExperiments.join(','),
Expand Down

0 comments on commit b8d6dd0

Please sign in to comment.