Last active
August 29, 2015 14:15
-
-
Save nutti/9f42b3cb0f685db47a0f to your computer and use it in GitHub Desktop.
Qiitaから特定ユーザの投稿の一覧を取得する
This file contains hidden or 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'; // ユーザ名 | |
$.ajax({ | |
url: 'https://qiita.com/api/v1/users/' + user + '/items', | |
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