Class: State
September 10, 2021 · View on GitHub
instagram-private-api / index / State
Class: State
index.State
Table of contents
Constructors
Properties
- adid
- adsOptOut
- authorization
- build
- capabilitiesHeader
- challenge
- checkpoint
- clientSessionIdLifetime
- connectionTypeHeader
- constants
- cookieJar
- cookieStore
- deviceId
- deviceString
- euDCEnabled
- igWWWClaim
- isLayoutRTL
- language
- passwordEncryptionKeyId
- passwordEncryptionPubKey
- phoneId
- pigeonSessionIdLifetime
- proxyUrl
- radioType
- supportedCapabilities
- thumbnailCacheBustingValue
- timezoneOffset
- uuid
Accessors
- appUserAgent
- appVersion
- appVersionCode
- batteryLevel
- bloksVersionId
- challengeUrl
- clientSessionId
- cookieCsrfToken
- cookieUserId
- cookieUsername
- devicePayload
- experiments
- fbAnalyticsApplicationId
- fbOrcaApplicationId
- fbOtaFields
- isCharging
- loginExperiments
- pigeonSessionId
- signatureKey
- signatureVersion
- userBreadcrumbKey
- webUserAgent
Methods
- deserialize
- deserializeCookieJar
- extractCookie
- extractCookieValue
- extractUserId
- generateDevice
- isExperimentEnabled
- serialize
- serializeCookieJar
Constructors
constructor
• new State()
Properties
adid
• adid: string
Google Play Advertising ID.
The advertising ID is a unique ID for advertising, provided by Google Play services for use in Google Play apps. Used by Instagram.
see https://support.google.com/googleplay/android-developer/answer/6048248?hl=en
Defined in
adsOptOut
• adsOptOut: boolean = false
Defined in
authorization
• Optional authorization: string
Defined in
build
• build: string
Defined in
capabilitiesHeader
• capabilitiesHeader: string = '3brTvwE='
Defined in
challenge
• challenge: ChallengeStateResponse = null
Defined in
checkpoint
• checkpoint: CheckpointResponse = null
Defined in
clientSessionIdLifetime
• clientSessionIdLifetime: number = 1200000
Defined in
connectionTypeHeader
• connectionTypeHeader: string = 'WIFI'
Defined in
constants
• constants: __module
Defined in
cookieJar
• cookieJar: CookieJar
Defined in
cookieStore
• cookieStore: MemoryCookieStore
Defined in
deviceId
• deviceId: string
Defined in
deviceString
• deviceString: string
Defined in
euDCEnabled
• Optional euDCEnabled: boolean
Defined in
igWWWClaim
• Optional igWWWClaim: string
Defined in
isLayoutRTL
• isLayoutRTL: boolean = false
Defined in
language
• language: string = 'en_US'
Defined in
passwordEncryptionKeyId
• Optional passwordEncryptionKeyId: string | number
Defined in
passwordEncryptionPubKey
• Optional passwordEncryptionPubKey: string
Defined in
phoneId
• phoneId: string
Defined in
pigeonSessionIdLifetime
• pigeonSessionIdLifetime: number = 1200000
Defined in
proxyUrl
• proxyUrl: string
Defined in
radioType
• radioType: string = 'wifi-none'
Defined in
supportedCapabilities
• supportedCapabilities: ({ name: string = "SUPPORTED_SDK_VERSIONS"; value: string = "13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.0,22.0,23.0,24.0,25.0,26.0,27.0,28.0,29.0,30.0,31.0,32.0,33.0,34.0,35.0,36.0,37.0,38.0,39.0,40.0,41.0,42.0,43.0,44.0,45.0,46.0,47.0,48.0,49.0,50.0,51.0,52.0,53.0,54.0,55.0,56.0,57.0,58.0,59.0,60.0,61.0,62.0,63.0,64.0,65.0,66.0" } | { name: string = "FACE_TRACKER_VERSION"; value: number = 12 })[]
Defined in
thumbnailCacheBustingValue
• thumbnailCacheBustingValue: number = 1000
Defined in
timezoneOffset
• timezoneOffset: string
Defined in
uuid
• uuid: string
Defined in
Accessors
appUserAgent
• get appUserAgent(): string
Returns
string
Defined in
appVersion
• get appVersion(): string
Returns
string
Defined in
appVersionCode
• get appVersionCode(): string
Returns
string
Defined in
batteryLevel
• get batteryLevel(): number
Returns
number
Defined in
bloksVersionId
• get bloksVersionId(): string
Returns
string
Defined in
challengeUrl
• get challengeUrl(): string
Returns
string
Defined in
clientSessionId
• get clientSessionId(): string
The current application session ID.
This is a temporary ID which changes in the official app every time the user closes and re-opens the Instagram application or switches account.
We will update it once an hour
Returns
string
Defined in
cookieCsrfToken
• get cookieCsrfToken(): string
Returns
string
Defined in
cookieUserId
• get cookieUserId(): string
Returns
string
Defined in
cookieUsername
• get cookieUsername(): string
Returns
string
Defined in
devicePayload
• get devicePayload(): Object
Returns
Object
| Name | Type |
|---|---|
android_release | string |
android_version | string |
manufacturer | string |
model | string |
Defined in
experiments
• get experiments(): string
Returns
string
Defined in
fbAnalyticsApplicationId
• get fbAnalyticsApplicationId(): string
Returns
string
Defined in
fbOrcaApplicationId
• get fbOrcaApplicationId(): string
Returns
string
Defined in
fbOtaFields
• get fbOtaFields(): string
Returns
string
Defined in
isCharging
• get isCharging(): boolean
Returns
boolean
Defined in
loginExperiments
• get loginExperiments(): string
Returns
string
Defined in
pigeonSessionId
• get pigeonSessionId(): string
Returns
string
Defined in
signatureKey
• get signatureKey(): string
Returns
string
Defined in
signatureVersion
• get signatureVersion(): string
Returns
string
Defined in
userBreadcrumbKey
• get userBreadcrumbKey(): string
Returns
string
Defined in
webUserAgent
• get webUserAgent(): string
Returns
string
Defined in
Methods
deserialize
▸ deserialize(state): Promise<void>
Parameters
| Name | Type |
|---|---|
state | any |
Returns
Promise<void>
Defined in
deserializeCookieJar
▸ deserializeCookieJar(cookies): Promise<void>
Parameters
| Name | Type |
|---|---|
cookies | string | Serialized |
Returns
Promise<void>
Defined in
extractCookie
▸ extractCookie(key): Cookie
Parameters
| Name | Type |
|---|---|
key | string |
Returns
Cookie
Defined in
extractCookieValue
▸ extractCookieValue(key): string
Parameters
| Name | Type |
|---|---|
key | string |
Returns
string
Defined in
extractUserId
▸ extractUserId(): string
Returns
string
Defined in
generateDevice
▸ generateDevice(seed): void
Parameters
| Name | Type |
|---|---|
seed | string |
Returns
void
Defined in
isExperimentEnabled
▸ isExperimentEnabled(experiment): boolean
Parameters
| Name | Type |
|---|---|
experiment | any |
Returns
boolean
Defined in
serialize
▸ serialize(): Promise<any>
Returns
Promise<any>
Defined in
serializeCookieJar
▸ serializeCookieJar(): Promise<Serialized>
Returns
Promise<Serialized>