title: Performing requests to ETSY store allowing access automatically PHP OAUTH
body: <p>I am using a library to connect to my ETSY store and pull data from receipts to bring them into my personal website (database).</p>
  
  <p>After making the request using OAuth, I get to the ETSY site to "Allow Access"</p>
  
  <p><a href="https://www.etsy.com/images/apps/documentation/oauth_authorize.png" rel="nofollow">https://www.etsy.com/images/apps/documentation/oauth_authorize.png</a></p>
  
  <p>Then, I need to manually click on Allow Access and my request will be completed and will display the data requested.</p>
  
  <p>I would like to avoid the process of manually clicking on "Allow Access", since I want my personal site to automatically display information pulled from ETSY orders.</p>
  
  <p>Here is my current code for page etsyRequest.php:</p>
  
  <pre><code>    $credentials = new Credentials(
      $servicesCredentials['etsy']['key'],
      $servicesCredentials['etsy']['secret'],
      $currentUri-&gt;getAbsoluteUri()
  );
  
  // Instantiate the Etsy service using the credentials, http client and storage mechanism for the token
  /** @var $etsyService Etsy */
  $etsyService = $serviceFactory-&gt;createService('Etsy', $credentials, $storage);
  
  if (!empty($_GET['oauth_token'])) {
      $token = $storage-&gt;retrieveAccessToken('Etsy');
  
      // This was a callback request from Etsy, get the token
      $etsyService-&gt;requestAccessToken(
          $_GET['oauth_token'],
          $_GET['oauth_verifier'],
          $token-&gt;getRequestTokenSecret()
      );
  
      // Send a request now that we have access token
      $result2 = json_decode($etsyService-&gt;request('/receipts/111111'));
  
      //echo 'result: &lt;pre&gt;' . print_r($result, true) . '&lt;/pre&gt;';
      echo $result2-&gt;results[0]-&gt;seller_user_id;
  </code></pre>
  
  <p>How could I automate the Allow Access part and get the returned value for my request by just running this page?</p>