mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-15 00:05:04 +02:00
Add "query database" endpoint
This commit is contained in:
@ -52,5 +52,9 @@ func (c *Client) newRequest(method, url string, body io.Reader) (*http.Request,
|
||||
req.Header.Set("Notion-Version", apiVersion)
|
||||
req.Header.Set("User-Agent", "go-notion/"+clientVersion)
|
||||
|
||||
if method == http.MethodPost || method == http.MethodPatch {
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
}
|
||||
|
||||
return req, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user