Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed addContact guid param, removed getSocialGraph fixed sessioned u…

…ser guid
  • Loading branch information...
commit a8ee921ac1f303d06b7ecfc81435043969639d98 1 parent e18f916
Zach Graves zachgraves authored dustinwhittle committed

Showing 1 changed file with 9 additions and 3 deletions. Show diff stats Hide diff stats

  1. +9 3 lib/Yahoo/YahooOAuthApplication.class.php
12 lib/Yahoo/YahooOAuthApplication.class.php
@@ -318,7 +318,7 @@ public function syncContacts($guid = null, $contactsync)
318 318 return $http['response_body'];
319 319 }
320 320
321   - public function addContact($guid, $contact)
  321 + public function addContact($guid = null, $contact)
322 322 {
323 323 if($guid == null && !is_null($this->token))
324 324 {
@@ -390,9 +390,15 @@ public function insertUpdate($guid = null, $description, $title, $link)
390 390 return $http['response_body'];
391 391 }
392 392
393   - public function getSocialGraph($offset = 0, $limit = 10)
  393 + public function getSocialGraph($guid = null, $offset = 0, $limit = 10)
394 394 {
395   - $data = $this->yql('select * from social.profile ('.$offset.', '.$limit.') where guid in (select guid from social.connections ('.$offset.', '.$limit.') where owner_guid=me)');
  395 + if($guid == null && !is_null($this->token))
  396 + {
  397 + $guid = $this->token->yahoo_guid;
  398 + }
  399 +
  400 + $query = sprintf("select * from social.profile where guid in (select guid from social.connections (%s, %s) where owner_guid='%s')", $offset, $limit, $guid);
  401 + $data = $this->yql($query);
396 402
397 403 return isset($data->query->results) ? $data->query->results : false;
398 404 }

0 comments on commit a8ee921

Please sign in to comment.
Something went wrong with that request. Please try again.