-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Params.ts
46 lines (44 loc) · 1.03 KB
/
Params.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { MediaType } from './page/media/AbstractPostPageMediaRequest';
/**
* Represents a user tag in a media object.
*/
export type UserTag = {
username: string;
x: number;
y: number;
};
/**
* Interface to represent the params of a request.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.1.0
*/
export interface Params {
access_token: string;
fields?: string;
limit?: number;
before?: string;
after?: string;
metric?: string;
period?: string;
since?: Date | number;
until?: Date;
user_id?: string;
q?: string;
message?: string;
hide?: boolean;
image_url?: string;
caption?: string;
user_tags?: UserTag[];
thumb_offset?: number;
video_url?: string;
media_type?: MediaType;
is_carousel?: boolean;
children?: string[];
/**
* Not obtainable through this API. https://developers.facebook.com/docs/instagram-api/reference/ig-user/media
*/
location_id?: string;
creation_id?: string;
share_to_feed?: boolean;
}