juliogarcia3378 / swagger-codegen
dev-master
2017-05-16 01:24 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2024-05-03 18:53:01 UTC
README
Move your app forward with the OpenParty API
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Build package: 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/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $api_instance = new Swagger\Client\Api\EventApi(); $date = new \DateTime(); // \DateTime | Date for event. $venue = "venue_example"; // string | Id for the venue. try { $result = $api_instance->eventsGet($date, $venue); print_r($result); } catch (Exception $e) { echo 'Exception when calling EventApi->eventsGet: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://api.openparty.co/v0
Class | Method | HTTP request | Description |
---|---|---|---|
EventApi | eventsGet | GET /events | Retrieve Events By Venue and Date |
VenueApi | venuesGet | GET /venues | Retrieve Venues by Type and Date |
VenueApi | venuesIdGet | GET /venues/{id} | Get Venue by a given id |
VenueApi | venuesIdTablepricingGet | GET /venues/{id}/tablepricing | Get All Bottle Service Tables by a venue in a given date |
Documentation For Models
Documentation For Authorization
All endpoints do not require authorization.