Created
February 17, 2015 12:44
-
-
Save nutti/ebb94940cea06f6a4c95 to your computer and use it in GitHub Desktop.
Qiitaから特定ユーザの投稿の一覧を取得する(限定共有投稿も取得)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var user = 'YOUR_NAME'; // ユーザ名 | |
var access_token = 'YOUR_ACCESS_TOKEN'; // アクセストークン | |
$.ajax({ | |
url: 'https://qiita.com/api/v1/users/' + user + '/items?token=' + access_token, | |
type: 'GET', | |
dataType: 'json', | |
scriptCharset: 'utf-8', | |
success: function(res) { | |
// 成功した時の処理 | |
}, | |
error: function(err) { | |
// 失敗した時の処理 | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment