Class: Request
September 10, 2021 · View on GitHub
instagram-private-api / index / Request
Class: Request
index.Request
Table of contents
Constructors
Properties
- attemptOptions
- defaults
- [end](Request.md#end)
- [error](Request.md#error)
Methods
Constructors
constructor
• new Request(client)
Parameters
| Name | Type |
|---|---|
client | IgApiClient |
Defined in
Properties
attemptOptions
• attemptOptions: Partial<AttemptOptions<any>>
Defined in
defaults
• defaults: Partial<Options> = {}
Defined in
end$
• end$: Subject<unknown>
Defined in
error$
• error$: Subject<IgClientError>
Defined in
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
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
sign
▸ sign(payload): SignedPost
Parameters
| Name | Type |
|---|---|
payload | Payload |
Returns
SignedPost
Defined in
signature
▸ signature(data): string
Parameters
| Name | Type |
|---|---|
data | string |
Returns
string
Defined in
userBreadcrumb
▸ userBreadcrumb(size): string
Parameters
| Name | Type |
|---|---|
size | number |
Returns
string