Model/Apiconnector/Client.php
public function postProgramsEnrolments($data)
    {
        $url = $this->getApiEndpoint() . self::REST_PROGRAM_ENROLMENTS;
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($data);

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'Post programs enrolments : ' . $response->message;
            $this->helper->debug('postProgramsEnrolments', [$message]);
            $this->helper->debug('postProgramsEnrolments', $data);
        }

        return $response;
    }
public function postProgramsEnrolments($data)
    {
        $url = $this->getApiEndpoint() . self::REST_PROGRAM_ENROLMENTS;
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($data);

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'Post programs enrolments : ' . $response->message;
            $this->helper->debug('postProgramsEnrolments', [$message]);
            $this->helper->debug('postProgramsEnrolments', $data);
        }

        return $response;
    }
public function postProgramsEnrolments ( $ data ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_PROGRAM_ENROLMENTS ; $ this -> setUrl ( $ url ) -> setVerb ( 'POST' ) -> buildPostBody ( $ data ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = 'Post programs enrolments : ' . $ response -> message ; $ this -> helper -> debug ( 'postProgramsEnrolments' , [ $ message ] ) ; $ this -> helper -> debug ( 'postProgramsEnrolments' , $ data ) ; } return $ response ; }
Creates an enrolment.

@param array $data

@return null
@throws \Exception
Creates an enrolment .