互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
764 B

5 years ago
  1. package im
  2. import "github.com/tencentyun/tls-sig-api-v2-golang/tencentyun"
  3. var (
  4. //SdkAppid = 1400345581
  5. //SdkAppKey = "e3d095ce8253fe18109d6c1ad068907978cac0a428fbad181d8958631b78e930"
  6. SdkAppKey = "9683fc9d2e50857f33c7ef5431942458f2dbc7042ba526f87042092afb646331"
  7. SdkAppid = 1400337419
  8. TxImHostV4 = "https://console.tim.qq.com/v4"
  9. )
  10. type CommonResult struct {
  11. ActionStatus string `json:"ActionStatus"`
  12. ErrorCode int `json:"ErrorCode"`
  13. ErrorInfo string `json:"ErrorInfo"`
  14. }
  15. type AccountImportParam struct {
  16. Identifier string `json:"Identifier"`
  17. Nick string `json:"Nick"`
  18. FaceUrl string `json:"FaceUrl"`
  19. }
  20. func GenSig(identifier string) (string, error) {
  21. return tencentyun.GenSig(SdkAppid, SdkAppKey, identifier, 86400000)
  22. }