Hello!

I’m trying to hit the manage tweet delete endpoint in order to delete tweets, however I’m receiving the follow error below;

Twitter API returned a status other than 200. httpStatus="403 Forbidden" httpStatusCode=403

I have set my api key and secret as part of the request and I am getting back a token with which the DELETE request is made, can someone help me with this please?

see the code snippet here, I’m using a gaoling library called gotwi

in := &gotwi.NewGotwiClientInput{
	AuthenticationMethod: gotwi.AuthenMethodOAuth2BearerToken,
}
c, err := gotwi.NewGotwiClient(in)
if err != nil {
	fmt.Println("1", err)
	return
}

p := &types.ManageTweetsDeleteParams{
	ID: "<tweets-id>",
}

fmt.Println("tok", c.AccessToken)

res, err := tweets.ManageTweetsDelete(context.Background(), c, p)
if err != nil {
	fmt.Println("2", err)
	return
}