mailoman / nasa-neows-client
0.0.1
2017-07-13 11:30 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2025-03-26 05:20:11 UTC
README
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0
- Package version: 0.0.1
- Build date: 2017-07-13T18:16:24.970+07:00
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
Requirements
PHP 5.4.0 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/mailoman/nasa-neows-client.git"
}
],
"require": {
"mailoman/nasa-neows-client": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/GeneratedNASANeoWsClient/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit lib/Tests
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: APIKeyQueryParam NASA\NeoWs\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // NASA\NeoWs\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); $api_instance = new NASA\NeoWs\Api\DefaultApi(); $page = 0; // int | page $size = 20; // int | size try { $result = $api_instance->browseNearEarthObjects($page, $size); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->browseNearEarthObjects: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://api.nasa.gov/neo/
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | browseNearEarthObjects | GET /rest/v1/neo/browse | browseNearEarthObjects |
DefaultApi | retrieveCurrentNeoStatistics | GET /rest/v1/stats | retrieveCurrentNeoStatistics |
DefaultApi | retrieveNEOFeedToday | GET /rest/v1/feed/today | retrieveNEOFeedToday |
DefaultApi | retrieveNearEarthObjectById | GET /rest/v1/neo/{asteroid_id} | retrieveNearEarthObjectById |
DefaultApi | retrieveNearEarthObjectFeed | GET /rest/v1/feed | retrieveNearEarthObjectFeed |
Documentation For Models
- CloseApproachData
- EstimatedDiameter
- EstimatedDiameterContainer
- HashmapStringListNearearthobject_
- Link
- MissDistance
- NearEarthObject
- NearEarthObjectList
- OrbitalData
- RelativeVelocity
- Statistics
- URL
Documentation For Authorization
APIKeyQueryParam
- Type: API key
- API key parameter name: api_key
- Location: URL query string