fix: don't add GET query params to CreateTweet POST request
This commit is contained in:
parent
e3cea855f8
commit
b20f9cb053
1 changed files with 2 additions and 1 deletions
3
tweet.go
3
tweet.go
|
|
@ -6,6 +6,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
|
@ -57,7 +58,7 @@ func (newTweet *newTweet) parse() *Tweet {
|
|||
}
|
||||
|
||||
func (s *Scraper) CreateTweet(tweet NewTweet) (*Tweet, error) {
|
||||
req, err := s.newRequest("POST", "https://x.com/i/api/graphql/Qkq4oPdZYuNB_Qw3TDuFqQ/CreateTweet")
|
||||
req, err := http.NewRequest("POST", "https://x.com/i/api/graphql/Qkq4oPdZYuNB_Qw3TDuFqQ/CreateTweet", nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue