Skip to content

Latest commit

 

History

History
215 lines (133 loc) · 4.34 KB

Request.md

File metadata and controls

215 lines (133 loc) · 4.34 KB

instagram-private-api / index / Request

Class: Request

index.Request

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Request(client)

Parameters

Name Type
client IgApiClient

Defined in

src/core/request.ts:44

Properties

attemptOptions

attemptOptions: Partial<AttemptOptions<any>>

Defined in

src/core/request.ts:39


defaults

defaults: Partial<Options> = {}

Defined in

src/core/request.ts:42


end$

end$: Subject<unknown>

Defined in

src/core/request.ts:37


error$

error$: Subject<IgClientError>

Defined in

src/core/request.ts:38

Methods

getDefaultHeaders

getDefaultHeaders(): Object

Returns

Object

Name Type
Accept-Encoding string
Accept-Language string
Authorization string
Connection string
Host string
User-Agent string
X-Ads-Opt-Out string
X-Bloks-Is-Layout-RTL string
X-Bloks-Version-Id string
X-CM-Bandwidth-KBPS string
X-CM-Latency string
X-FB-HTTP-Engine string
X-IG-Android-ID string
X-IG-App-ID string
X-IG-App-Locale string
X-IG-Bandwidth-Speed-KBPS string
X-IG-Bandwidth-TotalBytes-B string
X-IG-Bandwidth-TotalTime-MS string
X-IG-Capabilities string
X-IG-Connection-Speed string
X-IG-Connection-Type string
X-IG-Device-ID string
X-IG-Device-Locale string
X-IG-EU-DC-ENABLED string
X-IG-Extended-CDN-Thumbnail-Cache-Busting-Value string
X-IG-WWW-Claim string
X-MID string
X-Pigeon-Rawclienttime string
X-Pigeon-Session-Id string

Defined in

src/core/request.ts:183


send

send<T>(userOptions, onlyCheckHttpStatus?): Promise<IgResponse<T>>

Type parameters

Name Type
T any

Parameters

Name Type
userOptions Options
onlyCheckHttpStatus? boolean

Returns

Promise<IgResponse<T>>

Defined in

src/core/request.ts:59


sign

sign(payload): SignedPost

Parameters

Name Type
payload Payload

Returns

SignedPost

Defined in

src/core/request.ts:115


signature

signature(data): string

Parameters

Name Type
data string

Returns

string

Defined in

src/core/request.ts:109


userBreadcrumb

userBreadcrumb(size): string

Parameters

Name Type
size number

Returns

string

Defined in

src/core/request.ts:124