Skip to content

Commit

Permalink
added similar to catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
sydlawrencedev committed Jul 12, 2012
1 parent 80c03cc commit 1bb4d5b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
22 changes: 21 additions & 1 deletion lib/EchoNest/Api/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 142,27 @@ public function delete($id)

return $this->returnResponse($response);
}


/**
* Returns a list of all taste profiles that are similar to the given set of taste profiles.
* This method returns similar taste profiles of the given use type.
* Similarity search is restricted to taste profiles that were created with the caller's API key.
* http://developer.echonest.com/docs/v4/catalog.html#similar-beta
*
* @param string $id The ID of the catalog
* @return array response object
*/


public function similar($id)
{
$response = $this->client->get("catalog/similar", array(
"id" => $id
));

return $this->returnResponse($response);
}

/**
* Returns a list of all catalogs created on this key
* http://developer.echonest.com/docs/v4/catalog.html#list
Expand Down
3 changes: 1 addition & 2 deletions lib/EchoNest/Api/Sandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 58,7 @@ public static function oauth_signature($url,$params, $secret) {

$key = $secret."&";

$sig = self::oauth_hmacsha1($key, $data);
return $sig;
return self::oauth_hmacsha1($key, $data);
}
}

Expand Down

0 comments on commit 1bb4d5b

Please sign in to comment.