instagram-private-api / index / Request
index.Request
• new Request(client
)
Name | Type |
---|---|
client |
IgApiClient |
• attemptOptions: Partial
<AttemptOptions
<any
>>
• defaults: Partial
<Options
> = {}
• end$: Subject
<unknown
>
• error$: Subject
<IgClientError
>
▸ getDefaultHeaders(): Object
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 |
▸ send<T
>(userOptions
, onlyCheckHttpStatus?
): Promise
<IgResponse
<T
>>
Name | Type |
---|---|
T |
any |
Name | Type |
---|---|
userOptions |
Options |
onlyCheckHttpStatus? |
boolean |
Promise
<IgResponse
<T
>>
▸ sign(payload
): SignedPost
Name | Type |
---|---|
payload |
Payload |
SignedPost
▸ signature(data
): string
Name | Type |
---|---|
data |
string |
string
▸ userBreadcrumb(size
): string
Name | Type |
---|---|
size |
number |
string