1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
pub const BASE_URL: &'static str = "https://app-api.pixiv.net";
// This is taken from the Android app, don't worry about it. It's not really "compromisable", to some degree.
pub const AUTH_URL: &'static str = "https://oauth.secure.pixiv.net/auth/token";
pub const CLIENT_ID: &'static str = "KzEZED7aC0vird8jWyHM38mXjNTY";
pub const CLIENT_SECRET: &'static str = "W9JZoJe00qPvJsiyCGT3CCtC6ZUtdpKpzMbNlUGP";
pub const HASH_SECRET: &'static str =
    "28c1fdd170a5204386cb1313c7077b34f83e4aaf4aa829ce78c231e05b0bae2c";
pub const USER_AGENT: &'static str = "PixivAndroidApp/5.0.64 (Android 6.0)";
pub const X_CLIENT_TIME: &'static str = "X-Client-Time";
pub const X_CLIENT_HASH: &'static str = "X-Client-Hash";
pub const FOR_IOS: &'static str = "for_ios";

// Header Keys
pub const ILLUST_ID: &'static str = "illust_id";
pub const RESTRICT: &'static str = "restrict";
pub const TAGS: &'static str = "tags[]";
pub const OFFSET: &'static str = "offset";
pub const USER_ID: &'static str = "user_id";

// Header Values
pub const NONE: &'static str = "none";