Original post

I’ve been trying to use the new twitter api with golang for a fun project and while everything works in insomina, I cannot get the bearer token to work in golang. How do I get authorized using the bearer token with my request? I’ve tried doing req.Header.Add(“Authorization”,”Bearer ” + bearer) and making my request but had no luck.