title: Using Oauth2 to send bearer token in api
body: <p>I have an api and i have gained access to the bearer token by sending username and password . I need to use the token to then send send another request using Oauth2 gem(ruby). H I have the endpoint</p>
  <p>below is an example of something i think it may look like. I don't know the syntax or how to send this token to the url</p>
  <p>it would be great if someone could give me an example of how to set up the method. Where to plug in the bearer token that i have saved to an instance variable, etc.</p>
  <pre><code>req = Net::HTTP::Get.new(url.to_s)
  </code></pre>