for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ijeffro\Laralocker\LearningLocker\JourneyProgress;
use Ijeffro\Laralocker\LearningLocker\API\APIHandler;
class JourneyProgressHandler extends APIHandler {
private $journey_progress = '/journeyProgress';
private $api = '/api';
private $v1 = '/v1';
$v1
private $v2 = '/v2';
protected $headers = [
'Content-Type' => 'application/json'
];
function __construct($id = null) {
parent::__construct();
$this->id = $id;
id
}
/**
* Learning Locker: Request Organisation Details
*
* @return $response
$response
0
*/
public function get() {
try {
$url = $this->url . $this->api . $this->v2 . $this->journey_progress . '/' . $this->id ?? $this->id;
$response = $this->request($url);
return $response;
} catch (Exception $e) {
Ijeffro\Laralocker\Learn...urneyProgress\Exception
Exception
\
return $e;
public function update($data) {
$response = $this->save($url, $data);
public function create($data = null) {
$url = $this->url . $this->api . $this->v2 . $this->journey_progress;
$response = $this->make($url, $data);