# OAuth Helper Class for PHP Not Working

**URL:** <https://community.gravityforms.com/t/oauth-helper-class-for-php-not-working/11931>\
**Category:** Get Help\
**Tags:** oauth, restapi, insomnia\
**Created:** [February 16, 2022, 4:33pm UTC](https://community.gravityforms.com/t/oauth-helper-class-for-php-not-working/11931 "2022-02-16T16:33:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madgenius](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/madgenius/32/4305_2.png) [@madgenius](https://community.gravityforms.com/u/madgenius)\
**Post date:** [February 16, 2022, 4:33pm UTC](https://community.gravityforms.com/t/oauth-helper-class-for-php-not-working/11931/1 "2022-02-16T16:33:45Z")

</div>

Hey all. I’m trying to make a request to the API using OAuth1.0 as detailed here: [REST API v2 Authentication - Gravity Forms Documentation](https://docs.gravityforms.com/rest-api-v2-authentication/#oauth-php) . I’ve downloaded the helper class, but it isn’t working for me. When I debug, the $oauth variable is just returning an empty object. I’ve double- and triple-checked that I have the right url for my site and my consumer key and secret are correct. The request works fine with all the same parameters using Insomnia. Any advice here?

---

<div class="post-metadata">

**Author:** ![madgenius](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/madgenius/32/4305_2.png) [@madgenius](https://community.gravityforms.com/u/madgenius)\
**Post date:** [February 16, 2022, 7:54pm UTC](https://community.gravityforms.com/t/oauth-helper-class-for-php-not-working/11931/2 "2022-02-16T19:54:57Z")

</div>

Is this not giving anyone else issues? Basic authentication is giving me the same error, it’s all just a timeout error whenever I request anything via PHP, even though the endpoint works in a REST client like Insomnia and Postman. I’m copying and pasting directly from the docs.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [March 18, 2022, 7:55pm UTC](https://community.gravityforms.com/t/oauth-helper-class-for-php-not-working/11931/3 "2022-03-18T19:55:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
