constants

package
v0.2.7-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIG_KEY     = "68a04945eb02970e2e8d15266fc256f7295da123e123f44b88f09d594a5902df"
	SIG_VERSION = "4"
	APP_VERSION = "10.8.0"
)

Variables

View Source
var (
	HOSTNAME     = "i.instagram.com"
	WEB_HOSTNAME = "www.instagram.com"
	HOST         = "https://" + HOSTNAME + "/"
	WEBHOST      = "https://" + WEB_HOSTNAME + "/"
	API_ENDPOINT = HOST + "api/v1/"
)
View Source
var ROUTES = struct {
	HOSTNAME     string
	WEB_HOSTNAME string
	HOST         string
	WEBHOST      string

	ThreadsBroadcastText string
	Inbox                string
	Login                string
	LocationFeed         string
	ThreadsApproveAll    string
	ThreadsShow          string
	TimelineFeed         string
	Like                 string
	Unlike               string
}{
	HOSTNAME:     HOSTNAME,
	WEB_HOSTNAME: WEB_HOSTNAME,
	HOST:         HOST,
	WEBHOST:      WEBHOST,

	ThreadsBroadcastText: API_ENDPOINT + "direct_v2/threads/broadcast/text/",
	Inbox:                API_ENDPOINT + "direct_v2/inbox/{{if .Cursor}}?cursor={{.Cursor}}{{end}}",
	Login:                API_ENDPOINT + "accounts/login/",
	LocationFeed:         API_ENDPOINT + "feed/location/",
	ThreadsApproveAll:    API_ENDPOINT + "direct_v2/threads/approve_all/",
	ThreadsShow:          API_ENDPOINT + "direct_v2/threads/",
	TimelineFeed:         API_ENDPOINT + "feed/timeline/?rank_token={{.RankToken}}{{if .MaxID}}&max_id={{.MaxID}}{{end}}&ranked_content=true",
	Like:                 API_ENDPOINT + "media/{{.ID}}/like/",
	Unlike:               API_ENDPOINT + "media/{{.ID}}/unlike/",
}

Functions

func GetURL

func GetURL(name string, data interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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