{"action":"published","release":{"url":"https://api.github.com/repos/Phanatic/gitstats/releases/8927002","assets_url":"https://api.github.com/repos/Phanatic/gitstats/releases/8927002/assets","upload_url":"https://uploads.github.com/repos/Phanatic/gitstats/releases/8927002/assets{?name,label}","html_url":"https://github.com/Phanatic/gitstats/releases/tag/v1513365791.0.0","id":8927002,"tag_name":"v1513365791.0.0","target_commitish":"master","name":"","draft":false,"author":{"login":"Phanatic","id":82819,"avatar_url":"https://avatars0.githubusercontent.com/u/82819?v=4","gravatar_id":"","url":"https://api.github.com/users/Phanatic","html_url":"https://github.com/Phanatic","followers_url":"https://api.github.com/users/Phanatic/followers","following_url":"https://api.github.com/users/Phanatic/following{/other_user}","gists_url":"https://api.github.com/users/Phanatic/gists{/gist_id}","starred_url":"https://api.github.com/users/Phanatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phanatic/subscriptions","organizations_url":"https://api.github.com/users/Phanatic/orgs","repos_url":"https://api.github.com/users/Phanatic/repos","events_url":"https://api.github.com/users/Phanatic/events{/privacy}","received_events_url":"https://api.github.com/users/Phanatic/received_events","type":"User","site_admin":true},"prerelease":false,"created_at":"2017-11-15T17:29:38Z","published_at":"2017-12-15T19:23:13Z","assets":[],"tarball_url":"https://api.github.com/repos/Phanatic/gitstats/tarball/v1513365791.0.0","zipball_url":"https://api.github.com/repos/Phanatic/gitstats/zipball/v1513365791.0.0","body":"---\nlayout: post\ntitle: Khan Academy JS\n---\n## HI PRODUCT CHECKIN\n### Khan Academy JS\n*Node.JS SDK for interacting with Khan Academy APIs*\n\n#### Install this package.\n\n``` bash\nnpm install khanacademyjs --save\n```\n\n### SDK documentation\n* [Badges](#badges)\n* [Videos](#videos)\n* [Exercises](#exercises)\n\n<a name=\"badges\"></a>\n#### Badges\n\n**Retrieve a list of all badges**\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.badges.getBadges((err, response, badges)=>{\n\tconsole.log(`Found ${badges.length} badges`);\n});\n```\n\n###### Sample badge object\n``` json\n{\n      \"badge_category\": 1,\n      \"description\": \"Going Transonic\",\n      \"name\": \"greattimedproblembadge\",\n      \"points\": 500,\n      \"safe_extended_description\": \"Quickly & correctly answer 10 exercise problems in a row (time limit depends on exercise difficulty)\",\n      \"user_badges\": [\n          {\n              \"badge_name\": \"greattimedproblembadge\",\n              \"date\": \"2011-05-04T06:02:05Z\",\n              \"kind\": \"UserBadge\",\n              \"points_earned\": 500,\n              \"target_context\": {\n              },\n              \"target_context_name\": \"Addition 1\",\n              \"user\": \"you@gmail.com\"\n          }\n\t\t\t]\t\t\n  }\n```\n\n**Retrieve a list of all badge categories.**\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.badges.getBadgeCategories((err, response, categories)=>{\n\tconsole.log(`Found ${categories.length} categories`);\n});\n```\n\n###### Sample badge category object\n``` json\n\t{\n\t    \"category\": 0,\n\t    \"chart_icon_src\": \"/images/badges/meteorite-small-chart.png\",\n\t    \"description\": \"Meteorite badges are common and easy to earn when just getting started.\",\n\t    \"icon_src\": \"/images/badges/meteorite-small.png\",\n\t    \"large_icon_src\": \"/images/badges/meteorite.png\",\n\t    \"type_label\": \"Meteorite Badges\"\n\t}\n```\n\n**Retrieve specific badge category identified by `categoryId`**\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.badges.getBadgeCategory(categoryId, (err, response, category)=>{\n\tconsole.log(`Found category`, category);\n});\n```\n\n\n<a name=\"videos\"></a>\n#### Videos\n\n##### Retrieve the video identified by `readable_id` or `youtube_id`.\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.videos.getVideo(videoReadableId, (err, response, video)=>{\n\tconsole.log(`Found video`, video);\n});\n```\n\n##### Retrieve a list of all exercises associated with video `video_id`.\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.videos.getExercises(videoReadableId, (err, response, exercises)=>{\n\tconsole.log(`Found ${exercises.length} exercises`);\n});\n```\n\n<a name=\"exercises\"></a>\n#### Exercises\n\n##### Retrieve a filtered list of exercises in the library.\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.exercises.getExercises((err, response, exercises)=>{\n\tconsole.log(`Found ${exercises.length} exercises`);\n});\n```\n\n##### Retrieve exercises identified by `exerciseName`.\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.exercises.getExercise(exerciseName, (err, response, exercises)=>{\n\tconsole.log(`Found ${exercises.length} exercises`);\n});\n```\n\n##### Retrieve exercises identified by `exerciseName`.\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.exercises.getExercise(exerciseName, (err, response, exercise)=>{\n\tconsole.log(`Found exercise`, exercise);\n});\n```\n\n##### Retrieve all the exercises that list `exerciseName` as a prerequisite.\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.exercises.getFollowupExercises(exerciseName, (err, response, followupExercises)=>{\n\tconsole.log(`Found ${followupExercises.length} followup exercises`);\n});\n```\n\n##### Retrieve a list of videos associated with `exerciseName`.\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.exercises.getVideos(exerciseName, (err, response, videos)=>{\n\tconsole.log(`Found ${videos.length} videos`);\n});\n```\n\n##### Retrieve a list of Perseus exercises used for autocomplete.\n\n``` javascript\nvar khanJS = require('khanacademyjs');\nkhanJS.exercises.getPersusAutoComplete(exerciseName, (err, response, autoCompleteItems)=>{\n\tconsole.log(`Found ${autoCompleteItems.length} autocomplete items`);\n});\n```\n"}}
{"actor":{"display_login":"Phanatic"}}