@@ 95-105 (lines=11) @@ | ||
92 | * @param string $requestId |
|
93 | * @return bool |
|
94 | */ |
|
95 | public function acceptContactRequest($requestId) |
|
96 | { |
|
97 | $data = [ |
|
98 | 'contact_request' => [ |
|
99 | "type" => "contactrequest", |
|
100 | "id" => $requestId, |
|
101 | ], |
|
102 | ]; |
|
103 | ||
104 | return $this->post($data, UrlBuilder::RESOURCE_CONTACT_REQUEST_ACCEPT); |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * @param string $requestId |
|
@@ 111-121 (lines=11) @@ | ||
108 | * @param string $requestId |
|
109 | * @return bool |
|
110 | */ |
|
111 | public function ignoreContactRequests($requestId) |
|
112 | { |
|
113 | $data = [ |
|
114 | 'contact_request' => [ |
|
115 | "type" => "contactrequest", |
|
116 | "id" => $requestId, |
|
117 | ], |
|
118 | ]; |
|
119 | ||
120 | return $this->post($data, UrlBuilder::RESOURCE_CONTACT_REQUEST_IGNORE); |
|
121 | } |
|
122 | } |
|
123 |