PHP Classes

Forced GET method

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  Forced GET method  >  (Un) Subscribe thread alerts  
Subject:Forced GET method
Summary:setting token_request_method = "POST" gets overwritten
Messages:2
Author:Francesco Salvi
Date:2016-05-29 14:32:41
 

  1. Forced GET method   Reply   Report abuse  
Picture of Francesco Salvi Francesco Salvi - 2016-05-29 14:32:41
Hello there,
first, thanks for the useful library.
I don't know if this has already been addressed, but I noticed that you cannot set a token_request_method other than the default value (GET), like in:

$client = new oauth_client_class;
$client->token_request_method = "POST";

In fact, during Initialize() (line 2410), it gets overwritten back to 'GET';
(The API I'm working with (Beatport) requires you to use POST instead of GET)

  2. Re: Forced GET method   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-05-29 18:00:04 - In reply to message 1 from Francesco Salvi
You need to set it after calling Initialize().