I’m attempting to authorise with an Viagogo API utilizing oauth in my customized module (i’ve my credentials from Viagogo). I can assemble Drupal Development Service preliminary URL OK however Drupal Development Service redirect response from Drupal Development Service API is a relative reference with an absolute path i.e. /Public/SimpleOAuthAccessRequest/Authorize?oauth_token=Ypercent34hg5k34jhg5percent3D
Which in flip is throwing a lacking schema error utilizing drupal_http_request.
object(stdClass)#466 (4) { [“error”]=> string(14) “lacking schema” [“code”]=> int(-1002) [“redirect_code”]=> string(3) “302” [“redirect_url”]=> string(87) “/Public/SimpleOAuthAccessRequest/Authorize?oauth_token=Ypercent2Fbm9asdfasdfdsfjJfdd3D”
How am i able to get round this?
Is there an easier means my customized module can authorise with oauth and entry this API as a substitute of my having to write down this connector? Drupal Development Company PHP code pattern offered by Viagogo is utilizing CURL and works high quality exterior of Drupal however as soon as I carry Drupal Development Service features inside my customized module it would not work therefore me utilizing drupal_http_request.