Documentation ¶
Index ¶
- Constants
- func GetOauthURL(appKey, rURI, state, scope string) string
- func Json(obj interface{}) []byte
- type Client
- func (c *Client) Execute(req *Request, token string) (result []byte, err error)
- func (c *Client) GenerateRawSign(params map[string]string) string
- func (c *Client) GenerateSign(stringToBeSigned string) string
- func (c *Client) GetAccessToken(code, state, redirectUri string) (string, error)
- func (c *Client) GetAccessTokenNew(code string) (string, error)
- func (c *Client) Logger() logger.Logger
- func (c *Client) PostExecute(req *Request, token string) (result []byte, err error)
- func (c *Client) SetDev(dev bool)
- type Error
- type Request
- type Response
Constants ¶
View Source
const ( API_VERSION = "2.0" GATEWAY_URL = "https://api.jd.com/routerjson" GATEWAY_DEV_URL = "https://api-dev.jd.com/routerjson" LOG_GATEWAY_URL = "https://api-log.jd.com/routerjson" UNION_GATEWAY_URL = "https://api.jd.com/routerjson" )
Variables ¶
This section is empty.
Functions ¶
func GetOauthURL ¶
Types ¶
type Client ¶
func (*Client) GenerateSign ¶
func (*Client) GetAccessToken ¶
func (*Client) PostExecute ¶
Click to show internal directories.
Click to hide internal directories.