Tuesday, October 8, 2024
HomeGolangGolang one-legged Oauth1 - Getting Assist

Golang one-legged Oauth1 – Getting Assist


I’m making an attempt to generate a token so I could make one-legged Oauth 1 API calls, however I’m having issue to know how one can do it in Golang.

I can not discover a package deal both. Hope somebody may also help me out.

I attempted to get it working in Postman, that is working wonderful.

    req.Header.Add("Authorization", "OAuth oauth_consumer_key="xxxx",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1712582585",oauth_nonce="xxxx",oauth_version="1.0",oauth_signature="xxxx"")

However now I must translate it to Golang. The info that I’ve is an authentication_key and an authentication_secret.

That’s all I must make the API calls.

Hope somebody may also help me out on how one can create requests with a correct signal.

I attempted to seek out packages, however none help one-legged OAuth 1 calls so far as I can see.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments