Skip to content

Conversation

@Tpt
Copy link
Contributor

@Tpt Tpt commented Jul 30, 2016

No description provided.

$rsdElement = $pageXml->xpath( 'head/link[@type="application/rsd+xml"][@href]' );
$rsdXml = new SimpleXMLElement( $tempClient->get( $rsdElement[0]->attributes()['href'] )->getBody() );
return self::newFromApiEndpoint( $rsdXml->service->apis->api->attributes()->apiLink->__toString() );
$rsdXml = new SimpleXMLElement( $tempClient->get( (string) $rsdElement[0]->attributes()['href'] )->getBody() );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$tempClient? Who do I rage to about this? :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect that would be me ;)

@JeroenDeDauw
Copy link
Member

+1

@addshore addshore merged commit 9410676 into master Jul 31, 2016
@addshore addshore deleted the newFromPage branch July 31, 2016 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants