qiita-sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +21 -13
- data/lib/qiita/sdk/api_actions.rb +1 -1
- data/lib/qiita/sdk/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 71c7edf0bdd7b862c2a849008fffcfe59f498e8b0e5fda5f18f58088fa693229
         | 
| 4 | 
            +
              data.tar.gz: cdb6bcbdc4c1b1f94ec3472ae8156b71b5e5b1d4e2a5a58c9efe16e9e3336362
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 4863cefb226b79ad27e47d41fd9a127306c0deb5d042fc46abdd0e655b9ee404bddccc2450cb7ead39c0d15e0864d1fab06ee909fd7e97399ecc912ae68e3a35
         | 
| 7 | 
            +
              data.tar.gz: 12de9614ea7941ff3e13369d8e4f36980d454dd2caf2a4c97edb462e8b8edeb2adb5a5fbc1be83e65be721ec69a1b64c7395f0340a038d7c6778401dd2fae9f1
         | 
    
        data/README.md
    CHANGED
    
    | @@ -23,6 +23,8 @@ Or install it yourself as: | |
| 23 23 | 
             
            ```ruby
         | 
| 24 24 | 
             
              client = Qiita::Sdk::Client.new
         | 
| 25 25 | 
             
            ```
         | 
| 26 | 
            +
            <br />
         | 
| 27 | 
            +
            <br />
         | 
| 26 28 |  | 
| 27 29 | 
             
            認証が必要なアクションを行う場合
         | 
| 28 30 |  | 
| @@ -31,9 +33,14 @@ Or install it yourself as: | |
| 31 33 | 
             
                config.access_token = 'XXXX'
         | 
| 32 34 | 
             
              end
         | 
| 33 35 | 
             
            ```
         | 
| 36 | 
            +
            <br />
         | 
| 37 | 
            +
            <br />
         | 
| 34 38 |  | 
| 35 39 | 
             
            ### メソッド一覧
         | 
| 36 40 |  | 
| 41 | 
            +
            全て戻り値は [Net::HTTPResponse] を返す
         | 
| 42 | 
            +
             | 
| 43 | 
            +
             | 
| 37 44 | 
             
            - 記事につけられた「LGTM!」一覧を取得
         | 
| 38 45 |  | 
| 39 46 | 
             
            ```ruby
         | 
| @@ -48,7 +55,7 @@ Or install it yourself as: | |
| 48 55 |  | 
| 49 56 | 
             
            ```ruby
         | 
| 50 57 | 
             
              comment_id = 'XXXX'
         | 
| 51 | 
            -
               | 
| 58 | 
            +
              client.delete_comment(comment_id: comment_id)
         | 
| 52 59 | 
             
            ```
         | 
| 53 60 | 
             
            <br />
         | 
| 54 61 | 
             
            <br />
         | 
| @@ -81,7 +88,7 @@ Or install it yourself as: | |
| 81 88 |  | 
| 82 89 | 
             
            ```ruby
         | 
| 83 90 | 
             
              item_id = 'XXXX'
         | 
| 84 | 
            -
              client.fetch_item_comments(item_id: item_id)
         | 
| 91 | 
            +
              res = client.fetch_item_comments(item_id: item_id)
         | 
| 85 92 | 
             
            ```
         | 
| 86 93 | 
             
            <br />
         | 
| 87 94 | 
             
            <br />
         | 
| @@ -104,7 +111,7 @@ Or install it yourself as: | |
| 104 111 |  | 
| 105 112 | 
             
            ```ruby
         | 
| 106 113 | 
             
              tag_id = 'XXXX'
         | 
| 107 | 
            -
              client.fetch_tag(tag_id: tag_id)
         | 
| 114 | 
            +
              res = client.fetch_tag(tag_id: tag_id)
         | 
| 108 115 | 
             
            ```
         | 
| 109 116 | 
             
            <br />
         | 
| 110 117 | 
             
            <br />
         | 
| @@ -115,7 +122,7 @@ Or install it yourself as: | |
| 115 122 |  | 
| 116 123 | 
             
            ```ruby
         | 
| 117 124 | 
             
              user_id = 'XXXX'
         | 
| 118 | 
            -
              client.fetch_following_tags(user_id: user_id)
         | 
| 125 | 
            +
              res = client.fetch_following_tags(user_id: user_id)
         | 
| 119 126 | 
             
            ```
         | 
| 120 127 | 
             
            <br />
         | 
| 121 128 | 
             
            <br />
         | 
| @@ -126,7 +133,7 @@ Or install it yourself as: | |
| 126 133 |  | 
| 127 134 | 
             
            ```ruby
         | 
| 128 135 | 
             
              tag_id = 'XXXX'
         | 
| 129 | 
            -
               | 
| 136 | 
            +
              client.delete_tag_following(tag_id: tag_id)
         | 
| 130 137 | 
             
            ```
         | 
| 131 138 | 
             
            <br />
         | 
| 132 139 | 
             
            <br />
         | 
| @@ -137,7 +144,7 @@ Or install it yourself as: | |
| 137 144 |  | 
| 138 145 | 
             
            ```ruby
         | 
| 139 146 | 
             
              tag_id = 'XXXX'
         | 
| 140 | 
            -
              client.check_tag_following(tag_id: tag_id)
         | 
| 147 | 
            +
              res = client.check_tag_following(tag_id: tag_id)
         | 
| 141 148 | 
             
            ```
         | 
| 142 149 | 
             
            <br />
         | 
| 143 150 | 
             
            <br />
         | 
| @@ -159,7 +166,7 @@ Or install it yourself as: | |
| 159 166 |  | 
| 160 167 | 
             
            ```ruby
         | 
| 161 168 | 
             
              item_id = 'XXXX'
         | 
| 162 | 
            -
              client.fetch_item_stockers(item_id: item_id)
         | 
| 169 | 
            +
              res = client.fetch_item_stockers(item_id: item_id)
         | 
| 163 170 | 
             
            ```
         | 
| 164 171 | 
             
            <br />
         | 
| 165 172 | 
             
            <br />
         | 
| @@ -224,7 +231,7 @@ Or install it yourself as: | |
| 224 231 |  | 
| 225 232 | 
             
            ```ruby
         | 
| 226 233 | 
             
              user_id = 'XXXX'
         | 
| 227 | 
            -
              client.check_following(user_id: user_id)
         | 
| 234 | 
            +
              res = client.check_following(user_id: user_id)
         | 
| 228 235 | 
             
            ```
         | 
| 229 236 | 
             
            <br />
         | 
| 230 237 | 
             
            <br />
         | 
| @@ -325,7 +332,8 @@ restricted = false | |
| 325 332 | 
             
              item_id = 'XXXX'
         | 
| 326 333 | 
             
              client.stock_item(item_id: item_id)
         | 
| 327 334 | 
             
            ```
         | 
| 328 | 
            -
             | 
| 335 | 
            +
            <br />
         | 
| 336 | 
            +
            <br />
         | 
| 329 337 |  | 
| 330 338 |  | 
| 331 339 | 
             
            - 記事をストックから取り除く
         | 
| @@ -342,7 +350,7 @@ restricted = false | |
| 342 350 |  | 
| 343 351 | 
             
            ```ruby
         | 
| 344 352 | 
             
              item_id = 'XXXX'
         | 
| 345 | 
            -
              client.check_item_stock(item_id: item_id)
         | 
| 353 | 
            +
              res = client.check_item_stock(item_id: item_id)
         | 
| 346 354 | 
             
            ```
         | 
| 347 355 | 
             
            <br />
         | 
| 348 356 | 
             
            <br />
         | 
| @@ -431,7 +439,7 @@ restricted = false | |
| 431 439 | 
             
            ```ruby
         | 
| 432 440 | 
             
              comment_id = 'XXXX'
         | 
| 433 441 |  | 
| 434 | 
            -
              client.fetch_comment_reactions(comment_id: comment_id)
         | 
| 442 | 
            +
              res = client.fetch_comment_reactions(comment_id: comment_id)
         | 
| 435 443 | 
             
            ```
         | 
| 436 444 | 
             
            <br />
         | 
| 437 445 | 
             
            <br />
         | 
| @@ -442,7 +450,7 @@ restricted = false | |
| 442 450 | 
             
            ```ruby
         | 
| 443 451 | 
             
              item_id = 'XXXX'
         | 
| 444 452 |  | 
| 445 | 
            -
              client.fetch_item_reactions(item_id: item_id)
         | 
| 453 | 
            +
              res = client.fetch_item_reactions(item_id: item_id)
         | 
| 446 454 | 
             
            ```
         | 
| 447 455 | 
             
            <br />
         | 
| 448 456 | 
             
            <br />
         | 
| @@ -451,7 +459,7 @@ restricted = false | |
| 451 459 | 
             
            - アクセストークンに紐付いたユーザを返す
         | 
| 452 460 |  | 
| 453 461 | 
             
            ```ruby
         | 
| 454 | 
            -
              client.fetch_authenticated_user
         | 
| 462 | 
            +
              res = client.fetch_authenticated_user
         | 
| 455 463 | 
             
            ```
         | 
| 456 464 | 
             
            <br />
         | 
| 457 465 | 
             
            <br />
         | 
    
        data/lib/qiita/sdk/version.rb
    CHANGED