Closed cbuystore closed 8 years ago
you can fix this issue by replace getLoginUrl method to this in file vendor\dirkgroenen\pinterest-api-php\src\Pinterest\Auth\PinterestOAuth.php
public function getLoginUrl( $redirect_uri, $scopes = array("read_public") ) { $queryparams = array( "response_type" => "code", "redirect_uri" => $redirect_uri, "client_id" => $this->client_id, "client_secret" => $this->client_secret, "scope" => implode(",", $scopes), "state" => $this->state ); // Build url and return it return sprintf( "%s?%s", self::AUTH_HOST, http_build_query($queryparams) ); }
Error still persist when requesting token...
you can fix this issue by replace getLoginUrl method to this in file vendor\dirkgroenen\pinterest-api-php\src\Pinterest\Auth\PinterestOAuth.php