00001 <?php
00002
00003 /**00004 * @file00005 * Sample token endpoint.00006 *00007 * Obviously not production-ready code, just simple and to the point.00008 *00009 * In reality, you'd probably use a nifty framework to handle most of the crud for you.00010 */00011
00012 require "lib/MongoOAuth2.inc";
00013
00014$oauth = newMongoOAuth2();
00015 $oauth->grantAccessToken();