Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadStatusCode = &SAdaptedError{"bad status code"} ErrBadRequest = &SAdaptedError{"bad request"} ErrBuildRequest = &SAdaptedError{"build request"} )
Functions ¶
func NewAdaptedProducer ¶
func NewAdaptedProducer(pPostID string) adapters.IAdaptedProducer
curl 'https://api.chatingar.com/api/comment' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Referer: https://chatingar.com/' -H 'content-type: application/json' -H 'Origin: https://chatingar.com' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-site' --data-raw '{"postId":"65f7214f5b65dcbdedcca3fb","body":"\"123\""}'
Types ¶
type SAdaptedError ¶ added in v1.6.8
type SAdaptedError struct {
// contains filtered or unexported fields
}
func (*SAdaptedError) Error ¶ added in v1.6.8
func (err *SAdaptedError) Error() string
Click to show internal directories.
Click to hide internal directories.