2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Qiita API V2 にて自分の投稿が取得できない。。

Last updated at Posted at 2015-03-15

httpのヘッダーに[Authorization]を正しくセットした状態でAPIを叩いた場合、

https://qiita.com/api/v2/authenticated_user/items
これは自分の投稿が正しく取得できる

https://qiita.com/api/v2/items?query=qiita+user%3Ayaotti
これは他人の投稿が正しく取得できる

だけど、
https://qiita.com/api/v2/items?query=qiita+user%3Akacky69
これだと自分の投稿が正しく取得できない(私のuserid=kacky69)

これって仕様なのかなぁ。

*2015/03/16追記
RequestのHeaderにAuthorizationをセットせず、認証しない状態でAPIを叩くとqueryに自分のuserを指定した場合でも取得できるようになりました!

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?