gmessages/libgm/util/paths.go

33 lines
1.7 KiB
Go
Raw Normal View History

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