-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added behaviour delete - Added behaviour post - Added achievement attributes - Added achievement delete - Added achievement post
- Loading branch information
1 parent
d11f917
commit eb49452
Showing
13 changed files
with
417 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ vendor/* | |
composer.lock | ||
composer.phar | ||
.token | ||
.school | ||
.school | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
<?php namespace Wonde\Endpoints; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
class Achievements extends BootstrapEndpoint | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $uri = 'achievements/'; | ||
|
||
/** | ||
* Delete a achievement record by it's Wonde ID | ||
* | ||
* @param array $id | ||
* @return Response | ||
*/ | ||
public function delete($id) | ||
{ | ||
return parent::deleteRequestReturnBody($this->uri . $id); | ||
} | ||
|
||
/** | ||
* Create a achievement record | ||
* | ||
* @param $array | ||
* @return \stdClass | ||
*/ | ||
public function create($array) | ||
{ | ||
return parent::post($array); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php namespace Wonde\Endpoints; | ||
|
||
class AchievementsAttributes extends BootstrapEndpoint | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $uri = 'achievements/attributes/'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
<?php namespace Wonde\Endpoints; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
class Behaviours extends BootstrapEndpoint | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $uri = 'behaviours/'; | ||
|
||
/** | ||
* Delete a behaviour record by it's Wonde ID | ||
* | ||
* @param array $id | ||
* @return Response | ||
*/ | ||
public function delete($id) | ||
{ | ||
return parent::deleteRequestReturnBody($this->uri . $id); | ||
} | ||
|
||
/** | ||
* Create a behaviour record | ||
* | ||
* @param $array | ||
* @return \stdClass | ||
*/ | ||
public function create($array) | ||
{ | ||
return parent::post($array); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php namespace Wonde\Endpoints; | ||
|
||
class BehavioursAttributes extends BootstrapEndpoint | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $uri = 'behaviours/attributes/'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.