Пример #1
0
 /**
  * https://qiita.com/api/v2/docs#delete-apiv2itemsitem_idtaggingstagging_id
  * @param ItemId $itemId
  * @param TagId $tagId
  */
 public function deleteItemsItemIdTagginsTaggingId(ItemId $itemId, TagId $tagId)
 {
     try {
         //@todo 404の時だけfalseを返すようにする
         $response = $this->httpClient->delete(static::$teamAPIEntoryPoint . 'items/' . $itemId->getRawId() . '/taggings/' . $tagId->getRawId());
     } catch (\Exception $e) {
         return false;
     }
     return true;
 }
Пример #2
0
 /**
  * https://qiita.com/api/v2/docs#delete-apiv2itemsitem_id
  * @param ItemId $itemId
  */
 public function deleteItemsItemId(ItemId $itemId)
 {
     try {
         $response = $this->httpClient->delete($this->apiEntryPoint() . 'items/' . $itemId->getRawId());
     } catch (\Exception $e) {
         return false;
     }
     return true;
 }