@@ 108-117 (lines=10) @@ | ||
105 | * |
|
106 | * @return array|\JMS\Serializer\scalar|object |
|
107 | */ |
|
108 | public function userShow($customer_id) |
|
109 | { |
|
110 | $response = $this->getGuzzleClient() |
|
111 | ->get('/users/' . $customer_id, $this->setQuery()); |
|
112 | ||
113 | return $this->serializer->deserialize( |
|
114 | $response->getBody()->getContents(), |
|
115 | User::class, 'json' |
|
116 | ); |
|
117 | } |
|
118 | ||
119 | /** |
|
120 | * Show User me resource |
|
@@ 148-158 (lines=11) @@ | ||
145 | ); |
|
146 | } |
|
147 | ||
148 | public function itemShow($item_id) |
|
149 | { |
|
150 | $response = $this->getGuzzleClient() |
|
151 | ->get('/items/' . $item_id, $this->setQuery()); |
|
152 | ||
153 | return $this->serializer->deserialize( |
|
154 | $response->getBody()->getContents(), |
|
155 | Item::class, |
|
156 | 'json' |
|
157 | ); |
|
158 | } |
|
159 | ||
160 | /** |
|
161 | * Set query |