Skip to content

Commit

Permalink
ApiUsers search and link account fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deboorn committed May 27, 2015
1 parent 0f4aba9 commit 0698f9a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/API/ApiUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ public static function create($domain, $token, $data) {

public static function search($domain, $token, $params) {

$client = self::getApiV2Client($domain)->post()
$client = self::getApiV2Client($domain)->get()
->users()
->withHeader(new AuthorizationBearer($token))
->withHeader(new ContentType('application/json'))
->withBody(json_encode($data));
->withHeader(new ContentType('application/json'));

foreach ($params as $param => $value) {
$client->withParam($param, $value);
Expand Down Expand Up @@ -99,7 +98,7 @@ public static function linkAccount($domain, $token, $user_id, $post_identities_b
->devices()
->withHeader(new AuthorizationBearer($token))
->withHeader(new ContentType('application/json'))
->withBody(json_encode($body))
->withBody(json_encode($post_identities_body))
->call();
}

Expand Down

0 comments on commit 0698f9a

Please sign in to comment.