Skip to content

Latest commit

 

History

History
856 lines (466 loc) · 16.3 KB

File metadata and controls

856 lines (466 loc) · 16.3 KB

instagram-private-api / index / State

Class: State

index.State

Table of contents

Constructors

Properties

Accessors

Methods

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

src/core/state.ts:89


adsOptOut

adsOptOut: boolean = false

Defined in

src/core/state.ts:71


authorization

Optional authorization: string

Defined in

src/core/state.ts:74


build

build: string

Defined in

src/core/state.ts:78


capabilitiesHeader

capabilitiesHeader: string = '3brTvwE='

Defined in

src/core/state.ts:67


challenge

challenge: ChallengeStateResponse = null

Defined in

src/core/state.ts:100


checkpoint

checkpoint: CheckpointResponse = null

Defined in

src/core/state.ts:98


clientSessionIdLifetime

clientSessionIdLifetime: number = 1200000

Defined in

src/core/state.ts:101


connectionTypeHeader

connectionTypeHeader: string = 'WIFI'

Defined in

src/core/state.ts:68


constants

constants: __module

Defined in

src/core/state.ts:62


cookieJar

cookieJar: CookieJar

Defined in

src/core/state.ts:96


cookieStore

cookieStore: MemoryCookieStore

Defined in

src/core/state.ts:94


deviceId

deviceId: string

Defined in

src/core/state.ts:90


deviceString

deviceString: string

Defined in

src/core/state.ts:77


euDCEnabled

Optional euDCEnabled: boolean

Defined in

src/core/state.ts:70


igWWWClaim

Optional igWWWClaim: string

Defined in

src/core/state.ts:73


isLayoutRTL

isLayoutRTL: boolean = false

Defined in

src/core/state.ts:69


language

language: string = 'en_US'

Defined in

src/core/state.ts:64


passwordEncryptionKeyId

Optional passwordEncryptionKeyId: string | number

Defined in

src/core/state.ts:76


passwordEncryptionPubKey

Optional passwordEncryptionPubKey: string

Defined in

src/core/state.ts:75


phoneId

phoneId: string

Defined in

src/core/state.ts:80


pigeonSessionIdLifetime

pigeonSessionIdLifetime: number = 1200000

Defined in

src/core/state.ts:102


proxyUrl

proxyUrl: string

Defined in

src/core/state.ts:92


radioType

radioType: string = 'wifi-none'

Defined in

src/core/state.ts:66


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

src/core/state.ts:63


thumbnailCacheBustingValue

thumbnailCacheBustingValue: number = 1000

Defined in

src/core/state.ts:72


timezoneOffset

timezoneOffset: string

Defined in

src/core/state.ts:65


uuid

uuid: string

Defined in

src/core/state.ts:79

Accessors

appUserAgent

get appUserAgent(): string

Returns

string

Defined in

src/core/state.ts:120


appVersion

get appVersion(): string

Returns

string

Defined in

src/core/state.ts:29


appVersionCode

get appVersionCode(): string

Returns

string

Defined in

src/core/state.ts:33


batteryLevel

get batteryLevel(): number

Returns

number

Defined in

src/core/state.ts:141


bloksVersionId

get bloksVersionId(): string

Returns

string

Defined in

src/core/state.ts:57


challengeUrl

get challengeUrl(): string

Returns

string

Defined in

src/core/state.ts:152


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

src/core/state.ts:112


cookieCsrfToken

get cookieCsrfToken(): string

Returns

string

Defined in

src/core/state.ts:159


cookieUserId

get cookieUserId(): string

Returns

string

Defined in

src/core/state.ts:168


cookieUsername

get cookieUsername(): string

Returns

string

Defined in

src/core/state.ts:172


devicePayload

get devicePayload(): Object

Returns

Object

Name Type
android_release string
android_version string
manufacturer string
model string

Defined in

src/core/state.ts:128


experiments

get experiments(): string

Returns

string

Defined in

src/core/state.ts:53


fbAnalyticsApplicationId

get fbAnalyticsApplicationId(): string

Returns

string

Defined in

src/core/state.ts:37


fbOrcaApplicationId

get fbOrcaApplicationId(): string

Returns

string

Defined in

src/core/state.ts:45


fbOtaFields

get fbOtaFields(): string

Returns

string

Defined in

src/core/state.ts:41


isCharging

get isCharging(): boolean

Returns

boolean

Defined in

src/core/state.ts:147


loginExperiments

get loginExperiments(): string

Returns

string

Defined in

src/core/state.ts:49


pigeonSessionId

get pigeonSessionId(): string

Returns

string

Defined in

src/core/state.ts:116


signatureKey

get signatureKey(): string

Returns

string

Defined in

src/core/state.ts:17


signatureVersion

get signatureVersion(): string

Returns

string

Defined in

src/core/state.ts:21


userBreadcrumbKey

get userBreadcrumbKey(): string

Returns

string

Defined in

src/core/state.ts:25


webUserAgent

get webUserAgent(): string

Returns

string

Defined in

src/core/state.ts:124

Methods

deserialize

deserialize(state): Promise<void>

Parameters

Name Type
state any

Returns

Promise<void>

Defined in

src/core/state.ts:224


deserializeCookieJar

deserializeCookieJar(cookies): Promise<void>

Parameters

Name Type
cookies string | Serialized

Returns

Promise<void>

Defined in

src/core/state.ts:205


extractCookie

extractCookie(key): Cookie

Parameters

Name Type
key string

Returns

Cookie

Defined in

src/core/state.ts:180


extractCookieValue

extractCookieValue(key): string

Parameters

Name Type
key string

Returns

string

Defined in

src/core/state.ts:185


extractUserId

extractUserId(): string

Returns

string

Defined in

src/core/state.ts:194


generateDevice

generateDevice(seed): void

Parameters

Name Type
seed string

Returns

void

Defined in

src/core/state.ts:245


isExperimentEnabled

isExperimentEnabled(experiment): boolean

Parameters

Name Type
experiment any

Returns

boolean

Defined in

src/core/state.ts:176


serialize

serialize(): Promise<any>

Returns

Promise<any>

Defined in

src/core/state.ts:213


serializeCookieJar

serializeCookieJar(): Promise<Serialized>

Returns

Promise<Serialized>

Defined in

src/core/state.ts:209