public function create_evidence_for_multiple_unit(
        VO\Token $token,
        VO\ID $member_apprenticeship_id,
        VO\IDArray $program_units_id,
        VO\StringVO $evidence_type,
        VO\StringVO $document_url,
        VO\StringVO $document_key,
        VO\StringVO $address,
        VO\StringVO $latitude,
        VO\StringVO $longitude,
        VO\StringVO $description = null
    ){
        $request = new Request(
            new GuzzleClient,
            $this->credentials,
            VO\HTTP\Url::fromNative($this->base_url.'/student/create/evidence/for/multiple/units'),
            new VO\HTTP\Method('POST')
        );

        $request_parameters = array(
            'member_apprenticeship_id'  => $member_apprenticeship_id->__toString(),
            'program_units_id'          => $program_units_id->__toArray(),
            'address'                   => $address->__toString(),
            'latitude'                  => $latitude->__toString(),
            'longitude'                 => $longitude->__toString(),
            'evidence_type'             => $evidence_type->__toString(),
            'document_url'              => $document_url->__toString(),
            'document_key'              => $document_key->__toString()
        );

        if(!is_null($description)){
            $request_parameters['description'] = $description->__toString();
        }

        $header_parameters = array('Authorization' => $token->__toEncodedString());

        $response = $request->send($request_parameters, $header_parameters);

        $data = $response->get_data();

        return $data;
    }
public function create_evidence_for_multiple_unit(
        VO\Token $token,
        VO\ID $member_apprenticeship_id,
        VO\IDArray $program_units_id,
        VO\StringVO $evidence_type,
        VO\StringVO $document_url,
        VO\StringVO $document_key,
        VO\StringVO $address,
        VO\StringVO $latitude,
        VO\StringVO $longitude,
        VO\StringVO $description = null
    ){
        $request = new Request(
            new GuzzleClient,
            $this->credentials,
            VO\HTTP\Url::fromNative($this->base_url.'/student/create/evidence/for/multiple/units'),
            new VO\HTTP\Method('POST')
        );

        $request_parameters = array(
            'member_apprenticeship_id'  => $member_apprenticeship_id->__toString(),
            'program_units_id'          => $program_units_id->__toArray(),
            'address'                   => $address->__toString(),
            'latitude'                  => $latitude->__toString(),
            'longitude'                 => $longitude->__toString(),
            'evidence_type'             => $evidence_type->__toString(),
            'document_url'              => $document_url->__toString(),
            'document_key'              => $document_key->__toString()
        );

        if(!is_null($description)){
            $request_parameters['description'] = $description->__toString();
        }

        $header_parameters = array('Authorization' => $token->__toEncodedString());

        $response = $request->send($request_parameters, $header_parameters);

        $data = $response->get_data();

        return $data;
    }
public function create_evidence_for_multiple_unit ( VO \ Token $ token , VO \ ID $ member_apprenticeship_id , VO \ IDArray $ program_units_id , VO \ StringVO $ evidence_type , VO \ StringVO $ document_url , VO \ StringVO $ document_key , VO \ StringVO $ address , VO \ StringVO $ latitude , VO \ StringVO $ longitude , VO \ StringVO $ description = null ) { $ request = new Request ( new GuzzleClient , $ this -> credentials , VO \ HTTP \ Url :: fromNative ( $ this -> base_url . '/student/create/evidence/for/multiple/units' ) , new VO \ HTTP \ Method ( 'POST' ) ) ; $ request_parameters = array ( 'member_apprenticeship_id' => $ member_apprenticeship_id -> __toString ( ) , 'program_units_id' => $ program_units_id -> __toArray ( ) , 'address' => $ address -> __toString ( ) , 'latitude' => $ latitude -> __toString ( ) , 'longitude' => $ longitude -> __toString ( ) , 'evidence_type' => $ evidence_type -> __toString ( ) , 'document_url' => $ document_url -> __toString ( ) , 'document_key' => $ document_key -> __toString ( ) ) ; if ( ! is_null ( $ description ) ) { $ request_parameters [ 'description' ] = $ description -> __toString ( ) ; } $ header_parameters = array ( 'Authorization' => $ token -> __toEncodedString ( ) ) ; $ response = $ request -> send ( $ request_parameters , $ header_parameters ) ; $ data = $ response -> get_data ( ) ; return $ data ; }
Creates Evidences for each of the program children units
@param VO\Token $token
@param VO\ID $member_apprenticeship_id
@param VO\IDArray $program_units_id
@param VO\StringVO $evidence_type
@param VO\StringVO $document_url
@param VO\StringVO $document_key
@param VO\StringVO $address
@param VO\StringVO $latitude
@param VO\StringVO $longitude
@param VO\StringVO|null $description
@return \AcademyHQ\API\HTTP\Response\json
@throws VO\Exception\MethodNotAllowedException
@throws \AcademyHQ\API\HTTP\Response\Exception\ResponseException
Creates Evidences for each of the program children units