constants

package
v0.0.0-...-b569ada Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const ActivityNews string = "news/inbox/"

People

View Source
const AgreeConsentFirstStep string = "consent/existing_user_flow/"
View Source
const ApproveFriendship string = "friendships/approve/%d/"
View Source
const BlockedMedia string = "media/blocked/"

Media

View Source
const BootstrapUsers string = "scores/bootstrap/users/"
View Source
const ChangePassword string = "accounts/change_password/"
View Source
const ChangeProfilePicture string = "accounts/change_profile_picture/"
View Source
const CheckUsername string = "users/check_username/"
View Source
const CommentLike string = "media/%d/comment_like/"
View Source
const CommentMedia string = "media/%s/comment/"
View Source
const ContactPointPreFill string = "accounts/contact_point_prefill/"

Account

View Source
const CreateBusinessInfo string = "business_conversion/create_business_info/"
View Source
const CreateCollection string = "collections/create/"
View Source
const CurrentUser string = "accounts/current_user/"
View Source
const DeleteCollection string = "collections/%s/delete/"
View Source
const DirectInbox string = "direct_v2/inbox/"
View Source
const DirectRankedRecipients string = "direct_v2/ranked_recipients/"

Direct

View Source
const DisablePresence string = "accounts/set_presence_disabled/"
View Source
const DisableTwoFactorSms string = "accounts/disable_sms_two_factor/"
View Source
const EditCollection string = "collections/%s/edit/"
View Source
const EditProfile string = "accounts/edit_profile/"
View Source
const EnablePresence string = "accounts/set_presence_disabled/"
View Source
const EnableTwoFactorSms string = "accounts/enable_sms_two_factor/"
View Source
const Explore string = "discover/explore/"
View Source
const FacebookOTA string = "facebook_ota/"
View Source
const FetchQPData string = "qp/batch_fetch/"
View Source
const FollowUser string = "friendships/create/%d/"
View Source
const Followers string = "friendships/%d/followers/"
View Source
const GetBadgeNotifications string = "notifications/badge/"
View Source
const GetCollectionFeed string = "feed/collection/%s/"
View Source
const GetCollectionList string = "collections/list/"

Collection

View Source
const GetCommentCategoryFilterDisabled string = "accounts/get_comment_category_filter_disabled/"
View Source
const GetCommentFilter string = "accounts/get_comment_filter/"
View Source
const GetCommentFilterKeywords string = "accounts/get_comment_filter_keywords/"
View Source
const GetComments string = "media/%d/comments/"
View Source
const GetFriendship string = "friendships/show/%d/"
View Source
const GetFriendshipPending string = "friendships/pending/"
View Source
const GetHighlightsUserFeed string = "highlights/%d/highlights_tray/"

Highlight

View Source
const GetIGTVChannel string = "igtv/channel/"

Tv

View Source
const GetInfoById string = "users/%d/info/"
View Source
const GetInfoByUsername string = "users/%s/usernameinfo/"
View Source
const GetInsights string = "insights/account_organic_insights/"

Business

View Source
const GetMediaInfo string = "media/%s/info/"
View Source
const GetMediaInsights string = "insights/media_organic_insights/%s/"
View Source
const GetPresenceStatus string = "accounts/get_presence_disabled/"
View Source
const GetProcessContactPointSignals string = "accounts/process_contact_point_signals/"
View Source
const GetReelsMediaFeed string = "feed/reels_media/"
View Source
const GetSecurityInfo string = "accounts/account_security_info/"
View Source
const GetStatistics string = "ads/graphql/"
View Source
const GetUserReelMediaFeed string = "feed/user/%d/reel_media/"
View Source
const GetUserStoryFeed string = "feed/user/%d/story/"
View Source
const GetUserTimelineFeed string = "feed/user/%d/"
View Source
const LauncherSync string = "launcher/sync/"
View Source
const LogAttribution string = "attribution/log_attribution/"
View Source
const Login string = "accounts/login/"
View Source
const LoomFetchConfig string = "loom/fetch_config/"
View Source
const MSISDN string = "accounts/read_msisdn_header/"

Internals

View Source
const Presence string = "direct_v2/get_presence/"
View Source
const ProfileNotice string = "users/profile_notice/"
View Source
const PushRegister string = "push/register/"

Push Notification

View Source
const RecentSearches string = "fbsearch/recent_searches/"
View Source
const ReelsTrayFeed string = "feed/reels_tray/"

Story

View Source
const RemoveMediaFromCollections string = "media/{$mediaId}/save/"
View Source
const RemoveProfilePicture string = "accounts/remove_profile_picture/"
View Source
const ReportMedia string = "media/%d/flag_media/"
View Source
const SendConfirmEmail string = "accounts/send_confirm_email/"
View Source
const SendSmsCode string = "accounts/send_sms_code/"
View Source
const SendTwoFactorEnableSms string = "accounts/send_two_factor_enable_sms/"
View Source
const SetBiography string = "accounts/set_biography/"
View Source
const SetCommentFilter string = "accounts/set_comment_filter/"
View Source
const SetCommentFilterKeywords string = "accounts/set_comment_filter_keywords/"
View Source
const SetContactPointPrefil string = "accounts/contact_point_prefill/"
View Source
const SetPrivate string = "accounts/set_private/"
View Source
const SetPublic string = "accounts/set_public/"
View Source
const SuggestedSearches string = "fbsearch/suggested_searches/"

Discover

View Source
const SwitchToBusinessProfile string = "business_conversion/get_business_convert_social_context/"
View Source
const SwitchToPersonalProfile string = "business_conversion/convert_to_personal/"
View Source
const Sync string = "qe/sync/"
View Source
const TimelineFeed string = "feed/timeline/"

Timeline

View Source
const TwoFactorLogin string = "accounts/two_factor_login/"
View Source
const UploadPhoto string = "upload/photo/"
View Source
const VerifySmsCode string = "accounts/verify_sms_code/"
View Source
const ZeroRatingToken string = "zr/token/result/"

Variables

View Source
var (
	// Core API Constants.
	ApiUrls = map[int]string{
		1: "https://i.instagram.com/api/v1/",
		2: "https://i.instagram.com/api/v2/",
	}
	CookieUrl        = "https://i.instagram.com"
	IgVersion        = "85.0.0.21.100"
	VersionCode      = "146536611"
	IgSigKey         = "937463b5272b5d60e9d20f0f8d7d192193dd95095a3ad43725d494300a5ea5fc"
	Experiments      = "" /* 32225-byte string literal not displayed */
	LoginExperiments = "" /* 3285-byte string literal not displayed */
	SigKeyVersion    = "4"
	LauncherConfigs  = "" /* 234-byte string literal not displayed */

	// User-Agent Constants.
	UserAgentLocale = "en_US"

	// HTTP Protocol Constants.
	AcceptLanguage    = "en-US"
	AcceptEncoding    = "gzip,deflate"
	ContentType       = "application/x-www-form-urlencoded; charset=UTF-8"
	XFbHttpEngine     = "Liger"
	XIgConnectionType = "WIFI"
	XIgCapabilities   = "3brTvw=="

	// Supported Capabilities
	SupportedCapabilities = []map[string]string{
		{
			"name":  "SUPPORTED_SDK_VERSIONS",
			"value": "13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.0,22.0,23.0,24.0,25.0,26.0,27.0,28.0,29.0,30.0,31.0,32.0,33.0,34.0,35.0,36.0,37.0,38.0,39.0,40.0,41.0,42.0,43.0,44.0,45.0,46.0,47.0,48.0,49.0,50.0,51.0,52.0,53.0,54.0,55.0,56.0,57.0,58.0",
		},
		{
			"name":  "FACE_TRACKER_VERSION",
			"value": "12",
		},
		{
			"name":  "segmentation",
			"value": "segmentation_enabled",
		},
		{
			"name":  "COMPRESSION",
			"value": "ETC2_COMPRESSION",
		},
		{
			"name":  "world_tracker",
			"value": "world_tracker_enabled",
		},
		{
			"name":  "gyroscope",
			"value": "gyroscope_enabled",
		},
	}

	// Facebook Constants.
	FacebookOtaFields              = "" /* 224-byte string literal not displayed */
	FacebookOrcaProtocolVersion    = 20150314
	FacebookOrcaApplicationId      = "124024574287414"
	FacebookAnalyticsApplicationId = "567067343352427"

	// MQTT Constants.
	Platform                 = "android"
	FbNsApplicationName      = "MQTT"
	InstagramApplicationName = "instagram"
	PackageName              = "com.instagram.android"

	// Instagram Quick Promotions.
	SurfaceParam = []string{"4715", "5734"}

	// Internal Feedtype Constants. CRITICAL: EVERY value here MUST be unique!
	FeedTimeline      = "1"
	FeedTimelineAlbum = "2"
	FeedStory         = "3"
	FeedDirect        = "4"
	FeedDirectStory   = "5"
	FeedTv            = "6"
	DownloadPaths     = map[string]string{
		"photo": "downloads/photos",
		"video": "downloads/videos",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL