Documentation
¶
Index ¶
- Constants
- type Auth
- type AuthType
- type FileUploadParams
- type Request
- func (request *Request) AddHeaders(headers map[string]string)
- func (request *Request) Delete(path string, queryParams map[string]interface{}, ...) (map[string]interface{}, error)
- func (request *Request) File(path string, params FileUploadParams, extraHeaders map[string]string) (map[string]interface{}, error)
- func (request *Request) Get(path string, queryParams map[string]interface{}, ...) (map[string]interface{}, error)
- func (request *Request) GetUserAgent() string
- func (request *Request) Patch(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
- func (request *Request) Post(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
- func (request *Request) Put(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
- func (request *Request) SetTimeout(timeout int16)
- func (request *Request) SetUserAgent(userAgent string)
Constants ¶
View Source
const TIMEOUT = 10
TIMEOUT ... client timeout
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthType ¶ added in v1.4.1
type AuthType int
AuthType represents the type of authentication to use
type FileUploadParams ¶ added in v1.2.0
type Request ¶
type Request struct {
Auth Auth
AuthType AuthType
HTTPClient *http.Client
Headers map[string]string
Version string
SDKName string
AppDetails map[string]string
BaseURL string
// contains filtered or unexported fields
}
Request encapsulates all the information required to make an HTTP request to Razorpay's APIs.
func (*Request) AddHeaders ¶
AddHeaders adds header to the Request object
func (*Request) Delete ¶
func (request *Request) Delete(path string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Delete ...
func (*Request) Get ¶
func (request *Request) Get(path string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Get ...
func (*Request) GetUserAgent ¶ added in v1.3.4
func (*Request) Patch ¶
func (request *Request) Patch(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Patch ...
func (*Request) Post ¶
func (request *Request) Post(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Post ...
func (*Request) Put ¶
func (request *Request) Put(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Put ...
func (*Request) SetUserAgent ¶ added in v1.3.4
Click to show internal directories.
Click to hide internal directories.