API Code Samples via Gists
by Kin Lane on 10/28/2012Code samples in a variety of languages are how API owners help developers understand an API in the language that makes the most sense to them.
Not all developers will understand REST, HTTP and other things you might take for granted. Very simple code samples will help demonstrate an APIs functionality, making the learning process a hands-on experience.
Github provides a very lightweight tool for publishing API code samples, that can be embedded on any website, called Gists. You can easily copy / paste a working code sample into a Gist and Github returns a lightweight, embeddable JavaScript that you can use in documentation, blog posts and any where you will need to share with users.
Github Gists can be a much sexier, and easier to implement alternative to html <code> tags. While also allowing easy management and versioning of API code samples alongside Github API SDK repositories.
Tags:
| API Evangelist, Code Samples, Gists, GitHub, Github 101 |
|
Share
|
|
|
Tweet |
|
blog comments powered by Disqus
Partner Sites
Latest Blog Posts
- Connect With Linguistics API Apicultur While They Are In San Francisco
- My First Keynote With The Infamous Audrey Watters
- Are You Going To Be At API Days in San Francisco? I Am!
- Updated API History White Paper
- History of APIs - Twilio
- API Providers Guide - API Design
- Box Opens Up Revenue Sharing For API Developers
- History of APIs - Mashery
- A Book API Platform
- History of APIs - del.icio.us
- API Management Using Github
- In The End API Providers Will Only Sell Bandwidth
- The Build-Up To #APIStrat in October
- APIdays Mediterranea Is A Wrap
- Helping EFF Urge The Courts to Block Copyright Claims in Oracle v. Google API Fight
- API Aggregation For Federal Government with FedAPI
- Have You Checked Out Webshell Lately?
- New Features From BaaS Provider AnyPresence
- Signals I Use To Monitor Companies In The API Space
- API Management Using APiphany
- Github Can Be More Than Code
- Quick Demonstration Showing The Benefits of The White House Digital Strategy
- IRS Needs To Use White House Open Data Policy For Guidance
- Dropbox As Your Apps Default File System
- DataSift's Open Source World



