Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
composer.phar
composer.lock
vendor
.DS_Store
.DS_Store
.idea
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is .idea?

28 changes: 2 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,6 @@ Laravel wrapper for Everflow API
## Installation

```shell
composer require codegreencreative/laravel-everflow:^1.0
```
For Laravel 5.6+, this package uses service provider and alias auto discovery. You can still add the service provider and alias below in `config/app.php`.

CodeGreenCreative\Everflow\EverflowServiceProvider::class,

in the `providers` array and optionally

'Everflow' => CodeGreenCreative\Everflow\EverflowFacade::class,

to the `aliases` array.

## Configuration

Publish `everflow.php` config file.

```shell
php artisan vendor:publish --provider="CodeGreenCreative\Everflow\EverflowServiceProvider" --tag="config"
```

## Environment

Fill in your Everflow API key. Default values are used below.

```
EVERFLOW_API_KEY=
composer require sbarale/laravel-everflow:^4.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change completely wipes out my README file.

```
Internal note: Use Tags off of develop branch for the current version of Voost®
3 changes: 2 additions & 1 deletion src/Api/EverflowAffiliate.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ class EverflowAffiliate extends EverflowApiBase
public $childApis = [
'offers' => EverflowAffiliateOffers::class,
'reporting' => EverflowAffiliateReporting::class,
'pixels' => EverflowAffiliatePixels::class
];
}
}
33 changes: 33 additions & 0 deletions src/Api/EverflowAffiliatePixels.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

namespace CodeGreenCreative\Everflow\Api;

use CodeGreenCreative\Everflow\EverflowApiBase;
use CodeGreenCreative\Everflow\EverflowHttpClient;

class EverflowAffiliatePixels extends EverflowApiBase
{
public function all()
{
return EverflowHttpClient::get(EverflowHttpClient::route('affiliates/pixels'));
}

public function get()
{
return EverflowHttpClient::get(EverflowHttpClient::route('affiliates/pixels/:pixelId', [
'pixelId' => $this->id(),
]));
}

public function create($data = [])
{
return EverflowHttpClient::post(EverflowHttpClient::route('affiliates/pixels'), $data);
}

public function update($data = [])
{
return EverflowHttpClient::put(EverflowHttpClient::route('affiliates/pixels/:pixelId', [
'pixelId' => $this->id(),
]), $data);
}
}