Skip to content
This repository was archived by the owner on Feb 12, 2021. It is now read-only.

Commit 310b31d

Browse files
committed
Initial commit
0 parents  commit 310b31d

File tree

7 files changed

+1029
-0
lines changed

7 files changed

+1029
-0
lines changed

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2019 Apiltiy AS
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# laravel-netflex-api
2+
3+
A service provider which provides a facade for accessing the Netflex API.
4+
5+
## Installation
6+
7+
```bash
8+
composer require apility/laravel-netflex-api
9+
php artisan vendor:publish --tag=netflex-api
10+
```
11+
12+
## Configuration
13+
14+
Add your Netflex API keys in your .env file or ENV variables
15+
16+
```
17+
NETFLEX_PUBLIC_KEY=12345678abcdef12345678abcdef12345678abcdef12345678abcdef12345678
18+
NETFLEX_PRIVATE_KEY=12345678abcdef12345678abcdef12345678abcdef12345678abcdef12345678
19+
```
20+
21+
## Usage
22+
23+
```php
24+
use NetflexAPI;
25+
26+
$structures = NetflexAPI::get('builder/structures');
27+
28+
/*
29+
[
30+
{
31+
"id": "10000",
32+
"name": "Articles",
33+
"description": "Articles posted to our website",
34+
"created": "2019-10-25 16:30:00",
35+
"value_edit": null,
36+
"value_create": null,
37+
"value_media": null,
38+
"value_relations": null,
39+
"value_name": null,
40+
"value_tags": null,
41+
"value_variants": null,
42+
"value_author": null,
43+
"canonical_page_id": "0",
44+
"hide_url": "0",
45+
"generate_sitemap": "0",
46+
"url_scheme": null,
47+
"tags": null
48+
}
49+
]
50+
*/
51+
```

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "apility/laravel-netflex-api",
3+
"description": "Netflex API facade for Laravel",
4+
"keywords": [
5+
"netflex",
6+
"laravel"
7+
],
8+
"homepage": "https://github.com/apility/laravel-netflex-api",
9+
"license": "MIT",
10+
"require": {
11+
"php": "^7.1",
12+
"apility/netflex-api": "^1.0",
13+
"illuminate/support": "~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0"
14+
},
15+
"config": {
16+
"sort-packages": true
17+
},
18+
"extra": {
19+
"laravel": {
20+
"providers": [
21+
"Netflex\\Providers\\NetflexServiceProvider"
22+
],
23+
"aliases": {
24+
"NetflexAPI": "Netflex\\Facades\\NetflexAPI"
25+
}
26+
}
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"Netflex\\": "src"
31+
}
32+
},
33+
"support": {
34+
"issues": "https://github.com/apility/laravel-netflex-api/issues",
35+
"source": "https://github.com/apility/laravel-netflex-api"
36+
}
37+
}

0 commit comments

Comments
 (0)