Esempio n. 1
0
 /**
  * Label a given user and return decoded JSON response.
  *
  * @see https://siftscience.com/docs/references/labels-api
  * @see Label
  *
  * @param string     $userId
  * @param Label $label
  * @return array
  */
 public function labelUser(Label $label)
 {
     $json = $label->withKey($this->apiKey)->toJson();
     return $this->send($this->httpClient->post("users/{$label->userId}/labels", null, $json));
 }