Skip to content

Commit

Permalink
Renaming Services to API for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
woganmay committed May 3, 2018
1 parent ecb95d4 commit e23ecf2
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions docs/services.rst → docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
========
Services
========
===
API
===

Activity Logs
-------------
Expand Down
6 changes: 3 additions & 3 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
Overview
========

The domo-php library is organized into two parts - Services and Helpers. Mostly you'll be using the Services to interact with the API itself. The Helpers streamline some of the more tedious tasks.
The domo-php library is organized into two parts - API and Helpers. Mostly you'll be using the API object to interact with the API itself. The Helpers streamline some of the more tedious tasks.

This distinction is made in the object structure itself::

$client = new DomoPHP($id, $secret);

$client->API; // Services that use the Domo API
$client->API; // Proxies for accessing the Domo API
$client->Helpers; // Helpers for the more tedious stuff

.. toctree::
:maxdepth: 2

services
api
helpers
2 changes: 1 addition & 1 deletion src/Services/Admin.php → src/API/Admin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace WoganMay\DomoPHP\Services;
namespace WoganMay\DomoPHP\API;

/**
* DomoPHP Admin.
Expand Down
2 changes: 1 addition & 1 deletion src/Services/DataSet.php → src/API/DataSet.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace WoganMay\DomoPHP\Services;
namespace WoganMay\DomoPHP\API;

/**
* DomoPHP DataSet.
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Group.php → src/API/Group.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace WoganMay\DomoPHP\Services;
namespace WoganMay\DomoPHP\API;

/**
* DomoPHP Group.
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Page.php → src/API/Page.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace WoganMay\DomoPHP\Services;
namespace WoganMay\DomoPHP\API;

/**
* DomoPHP Page.
Expand Down
2 changes: 1 addition & 1 deletion src/Services/User.php → src/API/User.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace WoganMay\DomoPHP\Services;
namespace WoganMay\DomoPHP\API;

/**
* DomoPHP User Service.
Expand Down
10 changes: 5 additions & 5 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ public function __construct($client_id, $client_secret, $scopes = [])
if (!empty($scopes)) $this->setScopes($scopes);

// Services
$this->DataSet = new Services\DataSet($this);
$this->Group = new Services\Group($this);
$this->User = new Services\User($this);
$this->Page = new Services\Page($this);
$this->Admin = new Services\Admin($this);
$this->DataSet = new API\DataSet($this);
$this->Group = new API\Group($this);
$this->User = new API\User($this);
$this->Page = new API\Page($this);
$this->Admin = new API\Admin($this);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/DomoPHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class DomoPHP
public function __construct($client_id, $client_secret)
{
$this->API = new Client($client_id, $client_secret);

$this->Helpers = new Helpers\Helpers;
}

Expand Down

0 comments on commit e23ecf2

Please sign in to comment.