gmessages/libgm/util/paths.go

27 lines
1.3 KiB
Go
Raw Permalink Normal View History

2023-06-30 09:54:08 +00:00
package util
2023-07-15 23:21:53 +00:00
const messagesBaseURL = "https://messages.google.com"
2023-06-30 09:54:08 +00:00
2023-07-15 23:21:53 +00:00
const GoogleAuthenticationURL = messagesBaseURL + "/web/authentication"
const GoogleTimesourceURL = messagesBaseURL + "/web/timesource"
2023-06-30 09:54:08 +00:00
2023-07-15 23:21:53 +00:00
const instantMessangingBaseURL = "https://instantmessaging-pa.googleapis.com"
2023-06-30 09:54:08 +00:00
2023-07-15 23:21:53 +00:00
const UploadMediaURL = instantMessangingBaseURL + "/upload"
2023-06-30 09:54:08 +00:00
2023-07-15 23:21:53 +00:00
const pairingBaseURL = instantMessangingBaseURL + "/$rpc/google.internal.communications.instantmessaging.v1.Pairing"
const RegisterPhoneRelayURL = pairingBaseURL + "/RegisterPhoneRelay"
const RefreshPhoneRelayURL = pairingBaseURL + "/RefreshPhoneRelay"
const GetWebEncryptionKeyURL = pairingBaseURL + "/GetWebEncryptionKey"
const RevokeRelayPairingURL = pairingBaseURL + "/RevokeRelayPairing"
2023-06-30 09:54:08 +00:00
2023-07-15 23:21:53 +00:00
const messagingBaseURL = instantMessangingBaseURL + "/$rpc/google.internal.communications.instantmessaging.v1.Messaging"
const ReceiveMessagesURL = messagingBaseURL + "/ReceiveMessages"
const SendMessageURL = messagingBaseURL + "/SendMessage"
const AckMessagesURL = messagingBaseURL + "/AckMessages"
2023-07-15 23:21:53 +00:00
const registrationBaseURL = instantMessangingBaseURL + "/$rpc/google.internal.communications.instantmessaging.v1.Registration"
const RegisterRefreshURL = registrationBaseURL + "/RegisterRefresh"
const ConfigURL = "https://messages.google.com/web/config"