PHP Classes

File: doc/example/neo.php

Recommend this page to a friend!
  Classes of Sergii Pryz  >  NASA Near Earth Orbit API Client  >  doc/example/neo.php  >  Download  
File: doc/example/neo.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: 5 years ago
Size: 899 bytes


Class file image Download
namespace Picamator\NeoWsClient\Example;

 * Resource: GET /rest/v1/neo/{asteroid_id}

require_once 'app.php';
__DIR__ . '/template/neo.php';

use \

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

// get response
$request = new NeoRequest(['asteroidId' => '3729835']);
$response = $manager->find($request);

/** @var \Picamator\NeoWsClient\Model\Api\Data\NeoInterface $data */
$data = $response->getData();

echo <<<EOT
         NEO Asteroid

HTTP Code |
Api key limit |
Api key remaining |



For more information send a message to info at phpclasses dot org.