These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
Testing a major revision to CREST
@CCP_FoxFour // Technical Designer // Team Tech Co
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
--
iveeCore 3.0: The PHP engine for industrial activities and CREST library
Woo! CSM XI!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
OPTIONS https://login-tq.eveonline.com/oauth/token/ HTTP/1.1Access-Control-Request-Headers: authorization, content-typeAccess-Control-Request-Method: POST
HTTP/1.1 200 OKAccess-Control-Allow-Origin: *Access-Control-Allow-Methods: POST, OPTIONSAccess-Control-Allow-Headers: Authorization, Content-Type
$ch = curl_init($_GET['url']);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);if (array_key_exists('PHP_AUTH_USER', $_SERVER) && array_key_exists('PHP_AUTH_PW', $_SERVER)) curl_setopt($ch, CURLOPT_USERPWD, $_SERVER['PHP_AUTH_USER'].':'.$_SERVER['PHP_AUTH_PW']);curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $contents = curl_exec($ch);if($contents === false) echo 'ERROR: '.curl_error($ch);else echo $contents; curl_close($ch);
In [17]: oauth.get(fleet_url).json()Out[17]: {'isFreeMove': False,'isRegistered': False,'isVoiceEnabled': False,'members': {'href': 'https://crest-tq.eveonline.com/fleets/1016611228925/members/'},'motd': '','wings': {'href': 'https://crest-tq.eveonline.com/fleets/1016611228925/wings/'}}In [18]: oauth.get("https://crest-tq.eveonline.com/fleets/1016611228925/wings/").json()Out[18]: {'items': [{'href': 'https://crest-tq.eveonline.com/fleets/1016611228925/wings/2021811228925/', 'id': 2021811228925, 'id_str': '2021811228925', 'name': 'Wing 1', 'squads': {'href': 'https://crest-tq.eveonline.com/fleets/1016611228925/wings/2021811228925/squads/'}, 'squadsList': [{'href': 'https://crest-tq.eveonline.com/fleets/1016611228925/wings/2021811228925/squads/3041611228925/', 'id': 3041611228925, 'id_str': '3041611228925', 'name': 'Squad 1'}]}],'pageCount': 1,'pageCount_str': '1','totalCount': 1,'totalCount_str': '1'}In [19]: oauth.get("https://crest-tq.eveonline.com/fleets/1016611228925/wings/2021811228925/squads/").json()Out[19]: {'exceptionType': 'BadRequestError','key': 'noHandlerMatch','message': 'Did not find handle function to match GET None */* for class FleetSquads'}In [20]: oauth.get("https://crest-tq.eveonline.com/fleets/1016611228925/wings/2021811228925/squads/3041611228925/").json()Out[20]: {'exceptionType': 'BadRequestError','key': 'noHandlerMatch','message': 'Did not find handle function to match GET None */* for class FleetSquad'}
The call to https://crest-tq.eveonline.com/races/8/ failed with {"message": "Did not find handle function to match GET None */* for class Race", "key": "noHandlerMatch", "exceptionType": "BadRequestError"}The call to https://crest-tq.eveonline.com/fleets/1016611228925/members/93709888/ failed with {"message": "Did not find handle function to match GET None */* for class FleetMember", "key": "noHandlerMatch", "exceptionType": "BadRequestError"}The call to https://crest-tq.eveonline.com/characters/93709888/navigation/waypoints/ failed with {"message": "Did not find handle function to match GET None */* for class Waypoints", "key": "noHandlerMatch", "exceptionType": "BadRequestError"}The call to https://crest-tq.eveonline.com/characters/93709888/notifications/ failed with {"message": "Did not find handle function to match GET None */* for class CharacterNotifications", "key": "noHandlerMatch", "exceptionType": "BadRequestError"}The call to https://crest-tq.eveonline.com/bloodlines/8/ failed with {"message": "Did not find handle function to match GET None */* for class Bloodline", "key": "noHandlerMatch", "exceptionType": "BadRequestError"}The call to https://crest-tq.eveonline.com/fleets/1016611228925/wings/2021811228925/squads/3041611228925/ failed with {"message": "Did not find handle function to match GET None */* for class FleetSquad", "key": "noHandlerMatch", "exceptionType": "BadRequestError"}The call to https://crest-tq.eveonline.com/fleets/1016611228925/wings/2021811228925/ failed with {"message": "Did not find handle function to match GET None */* for class FleetWing", "key": "noHandlerMatch", "exceptionType": "BadRequestError"}The call to https://crest-tq.eveonline.com/fleets/1016611228925/wings/2021811228925/squads/ failed with {"message": "Did not find handle function to match GET None */* for class FleetSquads", "key": "noHandlerMatch", "exceptionType": "BadRequestError"}