1 | <?php |
||
22 | class Contacts extends AbstractApi |
||
23 | { |
||
24 | /** |
||
25 | * @param array $contact |
||
26 | * |
||
27 | * @return ResponseInterface |
||
28 | */ |
||
29 | public function create(array $contact) |
||
33 | |||
34 | /** |
||
35 | * @param array $contact |
||
36 | * |
||
37 | * @return Promise |
||
38 | */ |
||
39 | public function asyncCreate(array $contact) |
||
43 | |||
44 | /** |
||
45 | * @param array $contact |
||
46 | * |
||
47 | * @return ResponseInterface |
||
48 | */ |
||
49 | public function update(array $contact) |
||
53 | |||
54 | /** |
||
55 | * @param array $contact |
||
56 | * |
||
57 | * @return Promise |
||
58 | */ |
||
59 | public function asyncUpdate(array $contact) |
||
63 | |||
64 | /** |
||
65 | * @param array $contact |
||
66 | * |
||
67 | * @return ResponseInterface |
||
68 | */ |
||
69 | public function updateOrCreate(array $contact) |
||
73 | |||
74 | /** |
||
75 | * @param array $contact |
||
76 | * |
||
77 | * @return Promise |
||
78 | */ |
||
79 | public function asyncUpdateOrCreate(array $contact) |
||
83 | |||
84 | /** |
||
85 | * @param array $contacts |
||
86 | * |
||
87 | * @return \Psr\Http\Message\RequestInterface |
||
88 | */ |
||
89 | private function createCreateRequest(array $contacts) |
||
93 | |||
94 | /** |
||
95 | * @param array $contacts |
||
96 | * @param int $createIfNotExists |
||
97 | * |
||
98 | * @return \Psr\Http\Message\RequestInterface |
||
99 | */ |
||
100 | private function createUpdateRequest(array $contacts, $createIfNotExists = 0) |
||
104 | } |
||
105 |