@@ 33-43 (lines=11) @@ | ||
30 | * @param $token |
|
31 | * @return array |
|
32 | */ |
|
33 | public function createPersonal($application, array $personal, $token) |
|
34 | { |
|
35 | $entity = PersonalEntity::make($personal); |
|
36 | ||
37 | return $this->postDocument( |
|
38 | '/v4/applications/' . $application . '/user', |
|
39 | $entity->toArray(), |
|
40 | $token, |
|
41 | 'Personal' |
|
42 | ); |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * @author EA |
|
@@ 52-62 (lines=11) @@ | ||
49 | * @param $token |
|
50 | * @return array |
|
51 | */ |
|
52 | public function setPersonal($user, array $personal, $token) |
|
53 | { |
|
54 | $entity = PersonalEntity::make($personal); |
|
55 | ||
56 | return $this->postDocument( |
|
57 | '/v4/users/' . $user . '/personal', |
|
58 | $entity->toArray(), |
|
59 | $token, |
|
60 | 'Set Personal' |
|
61 | ); |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * @author EB |