Created
April 11, 2013 15:43
-
-
Save jalalhejazi/5364490 to your computer and use it in GitHub Desktop.
cURL: SuperWebApps.dk > JSON API
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
/* | |
SuperWebApps.dk JSON API | |
@Jalal.Hejazi 2013 | |
cURL 'http://superwebapps.dk/?json=core.info&controller=core&dev=1' | |
{ | |
"status": "ok", | |
"name": "Core", | |
"description": "Basic introspection methods", | |
"methods": [ | |
"info", | |
"get_recent_posts", | |
"get_post", | |
"get_page", | |
"get_date_posts", | |
"get_category_posts", | |
"get_tag_posts", | |
"get_author_posts", | |
"get_search_results", | |
"get_date_index", | |
"get_category_index", | |
"get_tag_index", | |
"get_author_index", | |
"get_page_index", | |
"get_nonce" | |
] | |
} | |
*/ | |
######## API HELP ######## | |
cURL 'http://superwebapps.dk/?json=core.info&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.info&controller=core&dev=1' | |
######## get_tag ######## | |
cURL 'http://superwebapps.dk/?json=core.get_tag_index&dev=1' | |
######## get_category ######## | |
cURL 'http://superwebapps.dk/?json=core.get_category_index&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.get_category_posts&slug=html5&dev=1' | |
######## get_post ######## | |
cURL 'http://superwebapps.dk/api/get_post/?post_id=279&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.get_post&slug=jalal&dev=1' | |
######## get_author ######## | |
cURL 'http://superwebapps.dk/?json=core.get_author_index&dev=1' | |
######## get_date ######## | |
cURL 'http://superwebapps.dk/?json=core.get_date_index&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.get_date_posts&date=2013&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.get_date_posts&date=2012&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.get_date_posts&date=2012-10-29&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.get_date_posts&date=2012-11&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.get_date_posts&date=2013-04&dev=1' | |
######## get_recent ######## | |
cURL 'http://superwebapps.dk/?json=core.get_recent_posts&dev=1' | |
cURL 'http://superwebapps.dk/?json=core.get_recent_posts&count=3' | |
cURL 'http://superwebapps.dk/?json=core.get_recent_posts&page=2' | |
######## get_search ######## | |
cURL 'http://superwebapps.dk/?json=core.get_search_posts&search=Tools' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment