PHP Classes

File: doc/example/wrong.resource.php

Recommend this page to a friend!
  Classes of Sergii Pryz   NASA Near Earth Orbit API Client   doc/example/wrong.resource.php   Download  
File: doc/example/wrong.resource.php
Role: Example script
Content type: text/plain
Description: Example script
Class: NASA Near Earth Orbit API Client
Get near Earth orbit object data with NASA API
Author: By
Last change:
Date: 7 years ago
Size: 868 bytes


Class file image Download
namespace Picamator\NeoWsClient\Example;

 * Resource: GET /rest/v1/stats

require_once 'app.php';

use \

/** @var \Picamator\NeoWsClient\Manager\Manager $manager */
$manager = $container->get('neo_ws_manager_statistics_manager');

// get response
$request = new StatisticsRequest(['resource' => 'wrong-resource']);
$response = $manager->find($request);

/** @var \stdClass $data */
$data = $response->getData();

echo <<<EOT
       NEO Wrong Resource

HTTP Code |
Api key limit |
Api key remaining |

Error message