Client Library that allow third party to access AcademyHQ APIs.
include the following line in your composer.json file and do composer update "olivemedia/academyhq-api-client": "dev-master"
$credentials = new \AcademyHQ\API\Common\Credentials( new \AcademyHQ\API\ValueObjects\AppID('Your App ID'), new \AcademyHQ\API\ValueObjects\SecretKey('Your Secret Key') ); $factory = new \AcademyHQ\API\Repository\Factory($credentials); /*@return instance of \AcademyHQ\API\Repository\MemberRepository */ $member_repository = $factory->get_member_repository(); [Instance of \AcademyHQ\API\Repository\MemberRepository is required to perform any action related to member] /*@return instance of \AcademyHQ\API\Repository\EnrolmentRepository */ $enrolment_repository = $factory->get_enrolment_repository(); [Instance of \AcademyHQ\API\Repository\EnrolmentRepository is required to perform any action related to enrolment] /*@return instance of \AcademyHQ\API\Repository\LicenseRepository */ $license_repository = $factory->get_license_repository(); [Instance of \AcademyHQ\API\Repository\LicenseRepository is required to perform any action related to license] /*@return instance of \AcademyHQ\API\Repository\CourseRepository */ $course_repository = $factory->get_course_repository(); [Instance of \AcademyHQ\API\Repository\CourseRepository is required to perform any action related to course] *@return instance of \AcademyHQ\API\Repository\PurchaseRepository */ $purchase_repository = $factory->get_purchase_repository(); [Instance of \AcademyHQ\API\Repository\PurchaseRepository is required to perform any action related to purchase]
/*@return member_id */ $member_id = $member_repository->create( \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Username("User Name"), new \AcademyHQ\API\ValueObjects\Email("[email protected]"), new \AcademyHQ\API\ValueObjects\Password("password") );
Alternatively you can provide ID as an extra parameter while creating member. Example shown below:
/*@return member_id */ $member_id = $member_repository->create( \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Username("User Name"), new \AcademyHQ\API\ValueObjects\Email("[email protected]"), new \AcademyHQ\API\ValueObjects\Password("password"), new \AcademyHQ\API\ValueObjects\ID('CUST-JOHN-SMITH') );
/*@return member std object */ /* member std object will contain id, first_name, last_name, username, email of member*/ $member = $member_repository->get(new \AcademyHQ\API\ValueObjects\MemberID('your member id'));
/*@return success message */ $response = $member_repository->delete(new \AcademyHQ\API\ValueObjects\MemberID('your member id'));
/*@return success message */ $response = $member_repository->save( new \AcademyHQ\API\ValueObjects\MemberID($member_id), \AcademyHQ\API\ValueObjects\Name::fromNative('Updated Fname', 'Updated Lname'), new \AcademyHQ\API\ValueObjects\Username('updated username'), new \AcademyHQ\API\ValueObjects\Email('updated password') );
/*@return success message */ $response = $member_repository->create_bulk_members_array( new \AcademyHQ\API\ValueObjects\MemberID($member_id), new \AcademyHQ\API\ValueObjects\Password('updated password') );
/*@return members_ids */ $response = $member_repository->create_bulk_members_array( \AcademyHQ\API\ValueObjects\FirstNameArray::fromNative(array('first_name_1', 'first_name_2')), \AcademyHQ\API\ValueObjects\LastNameArray::fromNative(array('last_name_1', 'last_name_2')), \AcademyHQ\API\ValueObjects\UsernameArray::fromNative(array('username_1', 'username_2')), \AcademyHQ\API\ValueObjects\EmailArray::fromNative(array('email_1', 'email_2')), \AcademyHQ\API\ValueObjects\PasswordArray::fromNative(array('password_1', 'password_2')) );
/*@return members_ids */ $response = $member_repository->create_bulk_members_json( \AcademyHQ\API\ValueObjects\FirstNameArray::fromNative(array('first_name_1', 'first_name_2')), \AcademyHQ\API\ValueObjects\LastNameArray::fromNative(array('last_name_1', 'last_name_2')), \AcademyHQ\API\ValueObjects\UsernameArray::fromNative(array('username_1', 'username_2')), \AcademyHQ\API\ValueObjects\EmailArray::fromNative(array('email_1', 'email_2')), \AcademyHQ\API\ValueObjects\PasswordArray::fromNative(array('password_1', 'password_2')) );
/*@return enrolment_id */ $enrolment_id = $enrolment_repository->create( new \AcademyHQ\API\ValueObjects\MemberID('member_id'), new \AcademyHQ\API\ValueObjects\LicenseID('license_id') );
/*@return array of enrolment_ids */ $enrolment_ids = $enrolment_repository->create_enrolments( new \AcademyHQ\API\ValueObjects\MemberID('member_id'), \AcademyHQ\API\ValueObjects\LicenseIDArray::fromNative(array('license_id_1', 'license_id_2')), new \AcademyHQ\API\ValueObjects\SendEmail(true/false) );
/*@return enrolment_ids / array of enrolment id */ $enrolment_ids = $enrolment_repository->create_for_organisation( new \AcademyHQ\API\ValueObjects\MemberID('member_id') );
/*@return Enrolment std object that contain the status of enrolment, registration and course name*/ $enrolment = $enrolment_repository->get(new \AcademyHQ\API\ValueObjects\EnrolmentID('enrolment_id'));
/*@return Success message*/ $enrolment = $enrolment_repository->delete(new \AcademyHQ\API\ValueObjects\EnrolmentID('enrolment_id'));
/*@Start or resume the enrolment and return the launch url*/ /*@Require Callback Url: Upon exit, the url in your application that the SCORM player will redirect to */ /*@ See Note Below regarding callback url*/ $launch_url = $enrolment_repository->get_launch_url(new \AcademyHQ\API\ValueObjects\EnrolmentID('enrolment_id'), \AcademyHQ\API\ValueObjects\HTTP\Url::fromNative('callback_url')); /* The launch_url can launched in new window or iframe */
/*@ returns Certificate std object that has id, course, member, certificate, enrolment_succeeded_at and expire_at*/ $certificate = $enrolment->get_certificate(new \AcademyHQ\API\ValueObjects\MemberCertificateID('member_certificate_id'));
/*@ returns url of certificate*/ $certificate = $enrolment->get_certificate_url(new \AcademyHQ\API\ValueObjects\MemberCertificateID('member_certificate_id'));
/*Below code in callback url will sync registration summary and provide you the recent enrolment status */ /*@Return enrolment std object that contain enrolment status */ $enrolment = $enrolment_repository->sync_result(new \AcademyHQ\API\ValueObjects\EnrolmentID('enrolment_id'));
/*@return enrolment_id */ $enrolment_id = $enrolment_repository->create_offline_enrolment( new \AcademyHQ\API\ValueObjects\MemberID('member_id'), new \AcademyHQ\API\ValueObjects\CourseID('course_id'), new \AcademyHQ\API\ValueObjects\StringVO('file_name'), new \AcademyHQ\API\ValueObjects\Integer(hrs), new \AcademyHQ\API\ValueObjects\Integer(min), new \AcademyHQ\API\ValueObjects\Integer(secs), new \AcademyHQ\API\ValueObjects\StringVO('issued_at'), new \AcademyHQ\API\ValueObjects\StringVO('expire_at'), );
/*@return array of enrolment_ids */ $enrolment_ids = $enrolment_repository->create_bulK_enrolments( new \AcademyHQ\API\ValueObjects\MemberID('member_id'), \AcademyHQ\API\ValueObjects\LicenseIDArray::fromNative(array('license_id_1', 'license_id_2')), \AcademyHQ\API\ValueObjects\CourseIDArray::fromNative(array()) );
/*@return array of enrolment_ids */ $enrolment_ids = $enrolment_repository->create_bulK_enrolments( new \AcademyHQ\API\ValueObjects\MemberID('member_id'), \AcademyHQ\API\ValueObjects\LicenseIDArray::fromNative(array()), \AcademyHQ\API\ValueObjects\CourseIDArray::fromNative(array('course_id_1', 'course_id_2')) );
/*@returns array of License std object */ /* License std object contains id, created_at, updated_at, course_id, name, descripton_message, completion_message, duration, typical_time, is_active and is_deleted */ $licenses = $license_repository->get_all();
/*@returns id of created license */ $login = $auth_repository->login( new \AcademyHQ\API\ValueObjects\ID('organisation_id'), new \AcademyHQ\API\ValueObjects\CourseID('course_id'))) );
/*@returns array of Course std object */ /* Course std object contains id, pub_id, name, certificate_name, module_count and image_url */ $courses = $course_repository->get_all();
/*@returns Course std object that contains id, pub_id, name, certificate_name, module_count, image_url, price and enrolment_count */ $course = $course_repository->get( new \AcademyHQ\API\ValueObjects\CourseID('course_id') );
/*@returns Course std object that contains id, pub_id, name, certificate_name, module_count, image_url, price and enrolment_count */ $courses = $course_repository->get_by_pub_id( new \AcademyHQ\API\ValueObjects\ID('id') );
/*@returns url of AcademyHQ Purchase Portal*/ $launch_url = $purchase_repository->get_launch_url( new \AcademyHQ\API\ValueObjects\LicenseID('license_id'), new \AcademyHQ\API\ValueObjects\MemberID('member_id')), new \AcademyHQ\API\ValueObjects\StringVO('callback_url') );
/*@returns token after sucessfull login which is valid for next two hours of genertation time*/ $login = $auth_repository->login( new \AcademyHQ\API\ValueObjects\Username('username'), new \AcademyHQ\API\ValueObjects\Password('password'))) );
/*@returns token after sucessfull login which is valid for next two hours of genertation time*/ $login = $auth_repository->login_from_email( new \AcademyHQ\API\ValueObjects\Email('email_address'), new \AcademyHQ\API\ValueObjects\Password('password'))) );
/*@returns message after sucesful logout*/ $logout = $auth_repository->logout( new \AcademyHQ\API\ValueObjects\Token('yoour_token')) );
/*@returns member_details of created sub organisation admin*/ $sub_organisation_admin = $employer_repository->create_sub_organisation_admin( new \AcademyHQ\API\ValueObjects\ID("sub_organisation_id") \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Username("User Name"), new \AcademyHQ\API\ValueObjects\Email("[email protected]") );
/*@returns organisation_details of created sub organisation*/ $sub_organisation = $employer_repository->create_sub_organisation( new \AcademyHQ\API\ValueObjects\StringVO("Test Organisation"), new \AcademyHQ\API\ValueObjects\Integer(1), new \AcademyHQ\API\ValueObjects\WebAddress("http://example.com"), new \AcademyHQ\API\ValueObjects\Email("[email protected]"), new \AcademyHQ\API\ValueObjects\Address("address"), new \AcademyHQ\API\ValueObjects\FaxNumber("+123456"), new \AcademyHQ\API\ValueObjects\TaxNumber("your_tax_number"), new \AcademyHQ\API\ValueObjects\CroNumber("your_cro_number"), new \AcademyHQ\API\ValueObjects\StringVO("your_latitude"), new \AcademyHQ\API\ValueObjects\StringVO("your_longitude"), new \AcademyHQ\API\ValueObjects\StringVO("your_trade_name"), new \AcademyHQ\API\ValueObjects\StringVO("your_date_of_commence") );
/*@returns organisation_details of created sub organisation*/ $sub_organisation = $employer_repository->create_sub_organisation_inherit_domain( new \AcademyHQ\API\ValueObjects\PublicID('ABC123'), new \AcademyHQ\API\ValueObjects\Integer(1), new \AcademyHQ\API\ValueObjects\StringVO("Test Organisation") );
/*@returns organisation_details of created sub organisation*/ $sub_organisation = $employer_repository->create_apprenticeship_organisation( new \AcademyHQ\API\ValueObjects\StringVO('your_organisation_name'), new \AcademyHQ\API\ValueObjects\TaxNumber('your_tax_number'), \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Email('your_email'), new \AcademyHQ\API\ValueObjects\StringVO("your_trade_name"), new \AcademyHQ\API\ValueObjects\StringVO("your_date_of_commence") );
/*@returns member_details of updated organisation admin*/ $registration = $employer_repository->registration_completion_for_admin( new \AcademyHQ\API\ValueObjects\MemberID('your_member_id'), \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Password('your_password'), new \AcademyHQ\API\ValueObjects\Password("your_password_confirmation"), );
/*@returns base_member_details*/ $base_member_details = $employer_repository->base_member( new \AcademyHQ\API\ValueObjects\MemberID('your_member_id') );
/*@returns member_details of updated candidate/ $registration = $employer_repository->registration_completion_for_candidate( new \AcademyHQ\API\ValueObjects\MemberID('your_member_id'), \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Password('your_password'), new \AcademyHQ\API\ValueObjects\Password("your_password_confirmation") );
/*@returns etb_details of created education training board and token is generated using auth repository */ $etb = $super_organisation_admin_repository->create_etb( new \AcademyHQ\API\ValueObjects\Token("token"), new \AcademyHQ\API\ValueObjects\Address("address"), new \AcademyHQ\API\ValueObjects\Latitude("12.0123"), new \AcademyHQ\API\ValueObjects\Longitude("18.0123"), new \AcademyHQ\API\ValueObjects\ID("A123"), new \AcademyHQ\API\ValueObjects\StringVO("ETB Name"), new \AcademyHQ\API\ValueObjects\StringVO("contact_person_name"), new \AcademyHQ\API\ValueObjects\PhoneNumber("your_phone_number") );
/*@returns member_details of created education training board admin*/ $etb_admin = $super_organisation_admin_repository->create_etb_admin( new \AcademyHQ\API\ValueObjects\Token("token"), \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Username("User Name"), new \AcademyHQ\API\ValueObjects\Email("[email protected]") );
/*@returns member_details of created education training board authorising officer*/ $etb_ao = $super_organisation_admin_repository->create_etb_authorizing_officer( new \AcademyHQ\API\ValueObjects\Token("token"), \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Username("User Name"), new \AcademyHQ\API\ValueObjects\Email("[email protected]") );
*@return etb_admin_details std object */ $etb_admin_details = $super_organisation_admin_repository->get_etb_admins(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\EtbID('your_etb_id'));
*@return etb_authorizing_officer_details std object */ $etb_authorizing_officer_details = $super_organisation_admin_repository->get_etb_authorizing_officer(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\EtbID('your_etb_id'));
*@return member_details std object */ $member_details = $super_organisation_admin_repository->get_etb_authorizing_officer( new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\Integer('is_declined'), new \AcademyHQ\API\ValueObjects\Integer('is_approved_by_etb_ao'), new \AcademyHQ\API\ValueObjects\Integer('is_approved_by_solas_admin'), new \AcademyHQ\API\ValueObjects\ID('ato_id'), new \AcademyHQ\API\ValueObjects\StringVO('order_by_field'), new \AcademyHQ\API\ValueObjects\StringVO('order_by_direction') );
/*@return notifications std object */ /* notification std object will contain id, crerated_at, updated_at, member_id, sender_id, notification_message, server_response, sent_at, next_send_at, is_set, is_opened, opened_at of notification*/ $notification = $notification_repository->member_web_notifications(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberID('your member id'));
/*@return notifications std object */ /* notification std object will contain id, crerated_at, updated_at, member_id, sender_id, notification_message, server_response, sent_at, next_send_at, is_set, is_opened, opened_at of notification*/ $notification = $notification_repository->sender_web_notifications(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberID('your sender id'));
/*@return notifications std object */ /* notification std object will contain id, crerated_at, updated_at, member_id, sender_id, notification_message, server_response, sent_at, next_send_at, is_set, is_opened, opened_at, attachemnt_document_key, attachament_document_url of notification*/ $notification = $notification_repository->web_notification(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\NotificationID('your notification id'));
/*@return notifications std object */ /* notification std object will contain id, created_at, updated_at, member_id, sender_id, notification_message, server_response, sent_at, next_send_at, is_set, is_opened, opened_at of notification*/ $notifications = $notification_repository->member_notifications(new \AcademyHQ\API\ValueObjects\Token('your token'));
/*@returns sucess message*/ $notfication = $notification_repository->create_notification( new \AcademyHQ\API\ValueObjects\Token("token"), \AcademyHQ\API\ValueObjects\MemberIDArray::fromNative(array('member_id_1', 'member_id_2')), new \AcademyHQ\API\ValueObjects\StringVO("your_notification_message"), \AcademyHQ\API\ValueObjects\NotificationTypeArray::fromNative(array('type_1', 'type_2')), \AcademyHQ\API\ValueObjects\AttachmentIDArray::fromNative(array('attachment_id_1', 'attachment_id_2')) );
/*@returns sucess message*/ $notfication = $notification_repository->create_notification( new \AcademyHQ\API\ValueObjects\Token("token"), \AcademyHQ\API\ValueObjects\MemberIDArray::fromNative(array('member_id_1', 'member_id_2')), new \AcademyHQ\API\ValueObjects\StringVO("your_notification_message"), \AcademyHQ\API\ValueObjects\NotificationTypeArray::fromNative(array('type_1', 'type_2')),new \AcademyHQ\API\ValueObjects\MemberID('your_sender_id'), \AcademyHQ\API\ValueObjects\AttachmentIDArray::fromNative(array('attachment_id_1', 'attachment_id_2')) );
/*@returns sucess message*/ $notfication = $notification_repository->update_notification( new \AcademyHQ\API\ValueObjects\Token("token"), new \AcademyHQ\API\ValueObjects\Integer("your_notification_id"), new \AcademyHQ\API\ValueObjects\Integer("unseen") );
/*@return member_programs std object */ $member_program = $member_program_repository->fetch_all_member_program(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberID('your member id'));
/*@return member_program_detail std object */ $member_program_detail = $member_program_repository->member_program_detail(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberProgramID('your member id'));
/*@return member_journey std object */ $member_journey = $member_program_repository->member_journey_list(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberID('your_member_id'), new \AcademyHQ\API\ValueObjects\OccupationID('your_occupation_id'));
/*@return phase_details std object */ $phase_details = $member_program_repository->phase_details(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberID('your_member_id'), new \AcademyHQ\API\ValueObjects\ID('your_member_program_id'));
/*@returns program_evidence of created program_evidence/ $program_evidence = $member_program_repository->create_program_evidence( new \AcademyHQ\API\ValueObjects\Token("token"), new \AcademyHQ\API\ValueObjects\ProgramID('your_program_id'), new \AcademyHQ\API\ValueObjects\MemberID('your_member_id'), new \AcademyHQ\API\ValueObjects\OccupationID("your_occupation_id"), new \AcademyHQ\API\ValueObjects\Integer("your_program_unit_id"), new \AcademyHQ\API\ValueObjects\Address("address"), new \AcademyHQ\API\ValueObjects\StringVO("your_latitude"), new \AcademyHQ\API\ValueObjects\StringVO("your_longitude"), new \AcademyHQ\API\ValueObjects\StringVO("your_evidence_image") );
/*@return program_evidence_details std object */ $program_evidence_details = $member_program_repository->program_evidence(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\ID('your_program_evidence_id'));
/*@return member_journey_details std object */ $member_journey_details = $member_program_repository->fetch_member_journey(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberID('your_member_id'));
/*@return member_details std object od updated member */ $member_details = $member_program_repository->update_member_phase_code( new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\Integer('your_member_id'), new \AcademyHQ\API\ValueObjects\StringVO('your_member_phase_code'), new \AcademyHQ\API\ValueObjects\Integer('your_apprenticeship_id') );
/*@returns organisation_details of editied sub organisation*/ $organisation = $organisation_admin_repository->edit_organisation( new \AcademyHQ\API\ValueObjects\Token("token"), new \AcademyHQ\API\ValueObjects\Integer('your_organisation_id'), new \AcademyHQ\API\ValueObjects\Integer(1), new \AcademyHQ\API\ValueObjects\StringVO("Test Organisation"), new \AcademyHQ\API\ValueObjects\WebAddress("http://example.com"), new \AcademyHQ\API\ValueObjects\Email("[email protected]"), new \AcademyHQ\API\ValueObjects\Address("address"), new \AcademyHQ\API\ValueObjects\FaxNumber("+123456"), new \AcademyHQ\API\ValueObjects\TaxNumber("your_tax_number"), new \AcademyHQ\API\ValueObjects\CroNumber("your_cro_number"), new \AcademyHQ\API\ValueObjects\StringVO("your_latitude"), new \AcademyHQ\API\ValueObjects\StringVO("your_longitude"), new \AcademyHQ\API\ValueObjects\StringVO("your_trade_name"), new \AcademyHQ\API\ValueObjects\StringVO("your_date_of_commence"), new \AcademyHQ\API\ValueObjects\StringVO("your_organisation_logo") );
/*@returns member_details of created member*/ $member_base = $organisation_admin_repository->create_base_member( new \AcademyHQ\API\ValueObjects\Token("token"), new \AcademyHQ\API\ValueObjects\Integer("your_organisation_id"), \AcademyHQ\API\ValueObjects\Name::fromNative("first_name", "last_name"), new \AcademyHQ\API\ValueObjects\StringVO("your_role"), new \AcademyHQ\API\ValueObjects\StringVO("your_qualification"), new \AcademyHQ\API\ValueObjects\StringVO("your_occupation"), new \AcademyHQ\API\ValueObjects\StringVO("your_comment"), new \AcademyHQ\API\ValueObjects\Email("your_email"), new \AcademyHQ\API\ValueObjects\PublicID("your_pub_id"), new \AcademyHQ\API\ValueObjects\Integer("is_member"), new \AcademyHQ\API\ValueObjects\Integer("is_contact_person"), new \AcademyHQ\API\ValueObjects\Integer("is_verifier"), new \AcademyHQ\API\ValueObjects\Integer("1") );
/*@returns member_details of created member*/ $member_base = $organisation_admin_repository->create_candidate( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_organisation_id"), new \AcademyHQ\API\ValueObjects\Integer("your_apprenticeship_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_pub_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_date_of_birth"), \AcademyHQ\API\ValueObjects\Name::fromNative("first_name", "last_name"), new \AcademyHQ\API\ValueObjects\StringVO("your_gender"), new \AcademyHQ\API\ValueObjects\StringVO("your_country_code"), new \AcademyHQ\API\ValueObjects\StringVO("your_mobile_number"), new \AcademyHQ\API\ValueObjects\Email("your_email"), new \AcademyHQ\API\ValueObjects\Integer("your_disability"), new \AcademyHQ\API\ValueObjects\StringVO("your_disability_text"), new \AcademyHQ\API\ValueObjects\Integer("your_advice"), new \AcademyHQ\API\ValueObjects\StringVO("your_advice_text"), new \AcademyHQ\API\ValueObjects\StringVO("your_street"), new \AcademyHQ\API\ValueObjects\StringVO("your_city"), new \AcademyHQ\API\ValueObjects\StringVO("your_state"), new \AcademyHQ\API\ValueObjects\StringVO("your_country"), new \AcademyHQ\API\ValueObjects\StringVO("your_postal_code"), new \AcademyHQ\API\ValueObjects\Integer("your_eye_test_document_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_eye_test_data_image"), new \AcademyHQ\API\ValueObjects\Integer("your_mimimum_educational_document_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_minimum_educational_data_image"), new \AcademyHQ\API\ValueObjects\Integer("your_signature_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_signature_data_image"), new \AcademyHQ\API\ValueObjects\StringVO("your_image") );
*@return unregistered member_details a/c to organisation std object */ $un_registered_member = $organisation_admin_repository->fetch_un_registered_member(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\OrganisationID('your_organisation_id'));
/*@return etb_organisagtion details of created etb organisation*/ $etb_organisation = $organisation_admin_repository->create_organisation_etb( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_organisation_id"), new \AcademyHQ\API\ValueObjects\Integer("your_etb_id") );
*@return etb_organisations details of std object */ $etb_organisation = $organisation_admin_repository->get_organisation_etb(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\OrganisationID('your_organisation_id'));
*@return organisations details of std object */ $$organisation = $organisation_admin_repository->get_organisation(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\OrganisationID('your_organisation_id'));
/*@return apprenticeships_list std object*/ $etb_organisation = $organisation_admin_repository->list_apprenticeships( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_employer_id"), new \AcademyHQ\API\ValueObjects\Integer("current_page"), new \AcademyHQ\API\ValueObjects\Integer("your_occupation_id"), new \AcademyHQ\API\ValueObjects\Integer("your_industry_id"), new \AcademyHQ\API\ValueObjects\Integer("your_sector_id"), new \AcademyHQ\API\ValueObjects\Integer("your_main_activity_id"), new \AcademyHQ\API\ValueObjects\Integer("your_number_of_qualified_person_in_occupation"), new \AcademyHQ\API\ValueObjects\Integer("your_contact_person_id"), new \AcademyHQ\API\ValueObjects\Integer("your_verifier_id"), new \AcademyHQ\API\ValueObjects\Integer("your_mentor_id"), new \AcademyHQ\API\ValueObjects\Integer("your_is_submitted"), new \AcademyHQ\API\ValueObjects\Integer("your_is_approved"), new \AcademyHQ\API\ValueObjects\Integer("your_is_declined"), new \AcademyHQ\API\ValueObjects\Integer("your_is_site_visited"), new \AcademyHQ\API\ValueObjects\Integer("is_appealed_to_solas_admin"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_solas_admin"), new \AcademyHQ\API\ValueObjects\Integer("is_rejected_by_solas_admin"), new \AcademyHQ\API\ValueObjects\Integer("your_is_confirmed_as_occupation"), new \AcademyHQ\API\ValueObjects\StringVo("your_order_by_field"), new \AcademyHQ\API\ValueObjects\Integer("your_order_by_direction"), );
/*@return nearest_etb std object*/ $nearest_etb = $organisation_admin_repository->get_nearest_etb( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\StringVO("your_latitude"), new \AcademyHQ\API\ValueObjects\StringVO("your_longitude") );
/*@return etb_admins std object*/ $etb_admins = $organisation_admin_repository->get_etb_admins( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\EtbID("your_etb_id") );
/*@return etb_authorizing_officers std object*/ $etb_authorizing_officers = $organisation_admin_repository->get_etb_authorizing_officer( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\EtbID("your_etb_id") );
/*@return etb_authorizing_officers std object*/ $apprenticeship_details = $organisation_admin_repository->apprenticeship_details( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_apprenticeship_id") );
/*@return occuppations std object*/ $occuppations = $organisation_admin_repository->list_occupations( new \AcademyHQ\API\ValueObjects\Token("your_token") );
/*@return occupation_details std object*/ $occupation_details = $organisation_admin_repository->occupation_details( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_occupation_id") );
/*@return industry std object*/ $industry = $organisation_admin_repository->list_industries( new \AcademyHQ\API\ValueObjects\Token("your_token") );
/*@return industry_details std object*/ $industry_details = $organisation_admin_repository->industry_details( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_industry_id") );
/*@return sectors std object*/ $sectors = $organisation_admin_repository->list_sectors( new \AcademyHQ\API\ValueObjects\Token("your_token") );
/*@return sector_details std object*/ $sector_details = $organisation_admin_repository->sector_details( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_sector_id") );
/*@return main_activities std object*/ $main_activities = $organisation_admin_repository->list_main_activities( new \AcademyHQ\API\ValueObjects\Token("your_token") );
/*@return main_activity_details std object*/ $main_activity_details = $organisation_admin_repository->main_activity_details( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_main_activity_id") );
/*@return apprenticeship_details of created apprenticeship*/ $apprenticeship_details = $organisation_admin_repository->create_apprenticeship( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_employer_id"), new \AcademyHQ\API\ValueObjects\Integer("your_occupation_id"), new \AcademyHQ\API\ValueObjects\Integer("your_sector_id"), new \AcademyHQ\API\ValueObjects\Integer("your_main_activity_id"), new \AcademyHQ\API\ValueObjects\Integer("your_industry_id"), new \AcademyHQ\API\ValueObjects\Integer("your_number_of_qualified_person_in_occupation"), new \AcademyHQ\API\ValueObjects\Integer("your_expected_number_of_apprentices_within_12_months"), new \AcademyHQ\API\ValueObjects\Integer("your_contact_person_id"), new \AcademyHQ\API\ValueObjects\Integer("your_verifier_id"), new \AcademyHQ\API\ValueObjects\Integer("your_mentor_id"), new \AcademyHQ\API\ValueObjects\Integer("your_is_submitted") );
/*@return apprenticeship_details of updated apprenticeship*/ $apprenticeship_details = $organisation_admin_repository->edit_apprenticeship( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ApprenticeshipID("your_apprenticeship_id"), new \AcademyHQ\API\ValueObjects\Integer("your_occupation_id"), new \AcademyHQ\API\ValueObjects\Integer("your_sector_id"), new \AcademyHQ\API\ValueObjects\Integer("your_main_activity_id"), new \AcademyHQ\API\ValueObjects\Integer("your_industry_id"), new \AcademyHQ\API\ValueObjects\Integer("your_number_of_qualified_person_in_occupation"), new \AcademyHQ\API\ValueObjects\Integer("your_expected_number_of_apprentices_within_12_months"), new \AcademyHQ\API\ValueObjects\Integer("your_contact_person"_id), new \AcademyHQ\API\ValueObjects\Integer("your_verifier_id"), new \AcademyHQ\API\ValueObjects\Integer("your_mentor_id"), new \AcademyHQ\API\ValueObjects\Integer("your_is_submitted"), new \AcademyHQ\API\ValueObjects\Integer("your_is_approved"), new \AcademyHQ\API\ValueObjects\Integer("your_is_declined"), new \AcademyHQ\API\ValueObjects\Integer("your_is_site_visited"), new \AcademyHQ\API\ValueObjects\Integer("your_is_confirmed_as_occupation"), new \AcademyHQ\API\ValueObjects\Integer("your_is_appealed_to_solas_admin"), new \AcademyHQ\API\ValueObjects\Integer("your_is_approved_by_solas_admin"), new \AcademyHQ\API\ValueObjects\Integer("your_is_rejected_by_solas_admin"), new \AcademyHQ\API\ValueObjects\Integer("your_is_site_visit_booked") );
/*@return member_ids std object*/ $member_ids = $organisation_admin_repository->get_member_ids( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\OrganisationID("your_organisation_id") );
/*@returns member_details of updated candidate*/ $member_base = $organisation_admin_repository->edit_candidate( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_organisation_id"), new \AcademyHQ\API\ValueObjects\Integer("your_apprenticeship_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_pub_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_date_of_birth"), \AcademyHQ\API\ValueObjects\Name::fromNative("first_name", "last_name"), new \AcademyHQ\API\ValueObjects\StringVO("your_gender"), new \AcademyHQ\API\ValueObjects\StringVO("your_country_code"), new \AcademyHQ\API\ValueObjects\StringVO("your_mobile_number"), new \AcademyHQ\API\ValueObjects\Email("your_email"), new \AcademyHQ\API\ValueObjects\StringVO("your_city"), new \AcademyHQ\API\ValueObjects\StringVO("your_state"), new \AcademyHQ\API\ValueObjects\StringVO("your_country"), new \AcademyHQ\API\ValueObjects\StringVO("your_postal_code"), new \AcademyHQ\API\ValueObjects\Integer("your_disability"), new \AcademyHQ\API\ValueObjects\StringVO("your_disability_text"), new \AcademyHQ\API\ValueObjects\Integer("your_advice"), new \AcademyHQ\API\ValueObjects\StringVO("your_advice_text"), new \AcademyHQ\API\ValueObjects\Integer("your_eye_test_document_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_eye_test_data_image"), new \AcademyHQ\API\ValueObjects\Integer("your_mimimum_educational_document_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_minimum_educational_data_image"), new \AcademyHQ\API\ValueObjects\Integer("your_signature_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_signature_data_image"), new \AcademyHQ\API\ValueObjects\StringVO("your_image") );
/*@returns member_details std object*/ $member_base = $organisation_admin_repository->get_candidates( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("employer_id"), new \AcademyHQ\API\ValueObjects\Integer("is_declined"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_etb_ao"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_solas_admin"), new \AcademyHQ\API\ValueObjects\Integer("ato_id"), new \AcademyHQ\API\ValueObjects\StringVO("order_by_field"), new \AcademyHQ\API\ValueObjects\StringVO("order_by_direction") );
/*@return site_visits std object*/ $site_visits = $organisation_admin_repository->get_site_visits( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\OrganisationID("your_organisation_id") );
/*@return apprenticeship_checklist std object*/ $apprenticeship_checklist = $organisation_admin_repository->apprenticeship_checklist( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ID("your_aprrenticeship_id") );
/*@returns member_details std object*/ $email = $organisation_admin_repository->send_email_to_set_password( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_member_id") );
/*@return assessors_or_verifiers std object*/ $assessors_or_verifiers = $organisation_admin_repository->get_assessor_or_verifier( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\OrganisationID("your_organisation_id") );
/*@return member_detaisl std object of updated memeber*/ $member_detaisl = $organisation_admin_repository->update_member( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ID("member_id"), new \AcademyHQ\API\ValueObjects\Integer("is_mentor"), new \AcademyHQ\API\ValueObjects\Integer("is_verifier"), new \AcademyHQ\API\ValueObjects\Integer("is_contact_person"), new \AcademyHQ\API\ValueObjects\StringVO("mobile_number"), new \AcademyHQ\API\ValueObjects\StringVO("country_code") );
/*@return apprenticeship_documents std object of updated memeber*/ $apprenticeship_documents = $organisation_admin_repository->apprenticeship_documents( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("apprenticeship_id") );
/*@return apprentice_documents std object of updated memeber*/ $apprentice_documents = $organisation_admin_repository->apprentice_documents( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("apprentice_id") );
/*@return data std object*/ $data = $organisation_admin_repository->list_occupations_main_activities_industries_sectors( new \AcademyHQ\API\ValueObjects\Token("your_token") );
/*@return member_documents_details std object */ /* member_document_details std object will contain id, created_at, updated_at, is_deleted, is_active, is_expired, expires_at, document_key, document_id, document of member_documents_details*/ $member_document_detials = $learner_repository->member_documents(new \AcademyHQ\API\ValueObjects\Token('your token'));
/*@return member_enrolment_certificate std object */ $member_enrolment_certificate = $learner_repository->member_enrolment_certificate(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\EnrolmentID('your_enrolment_id'));
/*@return certificates std object */ /* certificate std object will contain id, course, member, certificate, enrolment_succeeded_at, expire_at of certificates*/ $certificates = $learner_repository->certificates(new \AcademyHQ\API\ValueObjects\Token('your token'));
/*@return member_id of editied profile*/ $profile = $learner_repository->profile_update( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\PublicID("your_pub_id"), \AcademyHQ\API\ValueObjects\Name::fromNative("first_name", "last_name"), new \AcademyHQ\API\ValueObjects\Email("your_email"), new \AcademyHQ\API\ValueObjects\PhoneNumber("your_mobile_number"), new \AcademyHQ\API\ValueObjects\StringVO("yy-mm-dd"), new \AcademyHQ\API\ValueObjects\StringVO("your_gender"), new \AcademyHQ\API\ValueObjects\StringVO("your_country"), new \AcademyHQ\API\ValueObjects\StringVO("your_state"), new \AcademyHQ\API\ValueObjects\StringVO("your_city"), new \AcademyHQ\API\ValueObjects\StringVO("your_street"), new \AcademyHQ\API\ValueObjects\StringVO("your_postal_code"), new \AcademyHQ\API\ValueObjects\StringVO("your_image") );
/*@return member_profile_details std object */ /* member_profile_details std object will contain id, pub_id, first_name, last_name, email, mobile_number, date_of_birth, gender, address of member_profile_details*/ $member_profile_details = $learner_repository->get_profile(new \AcademyHQ\API\ValueObjects\Token('your token'));
/*@return member_documents_details std object */ /* member_document_details std object of member_documents_details*/ $member_document_detials = $learner_repository->member_document_details(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberDocuementID('your_member_document_id'));
/*@return documents_details std object */ /* document_details std object of documents_details*/ $document_detials = $learner_repository->documents_list(new \AcademyHQ\API\ValueObjects\Token('your token'));
/*@return documents_details std object */ /* document_details std object of documents_details*/ $document_detials = $learner_repository->required_document_list(new \AcademyHQ\API\ValueObjects\Token('your token'));
/*@return certifiacte_url std object */ /* document_details std object of documents_details*/ $certifiacte_url = $learner_repository->download_certificate(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberCertificateID('your_member_certificate_id'));
/*@return enrolment std object */ $enrolment = $learner_repository->enrolment_launch_url(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\EnrolmentID('your_enrolment_id'));
/*@return enrolment std object */ $enrolment = $learner_repository->enrolment_callback(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\EnrolmentID('your_enrolment_id'));
/*@return member_details std object */ $member_details = $learner_repository->get_member(new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\MemberID('your_member_id'));
/*@return document_details std object */ $document_details = $learner_repository->learner_document( new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\ID('your_member_id'), new \AcademyHQ\API\ValueObjects\StringVO('your_document_name') );
/*@return site_visit std object */ $site_visit = $etbao_repository->create_site_visit( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_employer_id"), new \AcademyHQ\API\ValueObjects\Integer("your_apprenticeship_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_booked_at") );
/*@return site_visit of updated site_visit std object */ $site_visit = $etbao_repository->edit_site_visit( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_site_visit_id"), new \AcademyHQ\API\ValueObjects\StringVO("your_booked_at"), new \AcademyHQ\API\ValueObjects\Integer("your_is_visited"), new \AcademyHQ\API\ValueObjects\StringVO("your_site_visited_at") );
/*@return apprentice_checklist std object */ $apprentice_checklist = $etbao_repository->create_apprenticeship_checklist( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\StringVO("json_of_checklist_questions"), new \AcademyHQ\API\ValueObjects\Integer("your_apprenticeship_id") );
/*@return apprenticeship_checklist std object*/ $apprenticeship_checklist = $etbao_repository->apprenticeship_checklist( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ID("your_aprrenticeship_id") );
*@return my_etb std object */ $my_etb = $etbao_repository->get_my_etb(new \AcademyHQ\API\ValueObjects\Token('your token'));
*@return apprenticeships std object */ $apprenticeships = $etbao_repository->fetch_all_apprenticeships( new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\Integer("employer_id"), new \AcademyHQ\API\ValueObjects\Integer("has_passed"), new \AcademyHQ\API\ValueObjects\Integer("is_booked"), new \AcademyHQ\API\ValueObjects\StringVO("query"), new \AcademyHQ\API\ValueObjects\Integer("set_per_page"), new \AcademyHQ\API\ValueObjects\Integer("page"), new \AcademyHQ\API\ValueObjects\StringVO("order_by_field"), new \AcademyHQ\API\ValueObjects\StringVO("order_by_direction") );
/*@returns member_details std object*/ $member_details = $etbao_repository->get_candidates( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("employer_id"), new \AcademyHQ\API\ValueObjects\Integer("is_declined"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_etb_ao"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_solas_admin"), new \AcademyHQ\API\ValueObjects\StringVO("order_by_field"), new \AcademyHQ\API\ValueObjects\StringVO("order_by_direction") );
/*@returns apprenticeship_document std object*/ $apprenticeship_document = $etbao_repository->create_apprenticeship_document( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ID("apprenticeship_id"), new \AcademyHQ\API\ValueObjects\Integer("is_declined"), new \AcademyHQ\API\ValueObjects\Integer("is_approved"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_solas_admin"), new \AcademyHQ\API\ValueObjects\Integer("is_rejected_by_solas_admin"), new \AcademyHQ\API\ValueObjects\StringVO("type"), new \AcademyHQ\API\ValueObjects\StringVO("document"), new \AcademyHQ\API\ValueObjects\StringVO("extension") );
/*@returns apprentice_document std object*/ $apprenticeship_document = $etbao_repository->create_apprentice_document( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("member_id"), new \AcademyHQ\API\ValueObjects\Integer("apprenticeship_id"), new \AcademyHQ\API\ValueObjects\Integer("is_declined"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_etb_ao"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_solas_admin"), new \AcademyHQ\API\ValueObjects\StringVO("type"), new \AcademyHQ\API\ValueObjects\StringVO("document"), new \AcademyHQ\API\ValueObjects\StringVO("extension") );
/*@return updated apprenticeship_details std object */ $apprenticeship = $etbadmin_repository->assign_ao_to_apprenticeship_application( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ApprenticeshipID("your_apprenticeship_id"), new \AcademyHQ\API\ValueObjects\Integer("your_employer_id") );
*@return etb_authorizing_officer_details std object */ $etb_authorizing_officer_details = $etbadmin_repository->get_etb_admins(new \AcademyHQ\API\ValueObjects\Token('your token'));
*@return my_etb std object */ $my_etb = $etbadmin_repository->get_my_etb(new \AcademyHQ\API\ValueObjects\Token('your token'));
*@return apprenticeships std object */ $apprenticeships = $etbadmin_repository->fetch_all_apprenticeships( new \AcademyHQ\API\ValueObjects\Token('your token'), new \AcademyHQ\API\ValueObjects\Integer("employer_id"), new \AcademyHQ\API\ValueObjects\Integer("is_new_apprenticeships_application"), new \AcademyHQ\API\ValueObjects\Integer("is_site_visit_approved"), new \AcademyHQ\API\ValueObjects\Integer("is_site_visit_rejected"), new \AcademyHQ\API\ValueObjects\Integer("is_site_visit_booked"), new \AcademyHQ\API\ValueObjects\Integer("current_page"), new \AcademyHQ\API\ValueObjects\Integer("set_per_page"), new \AcademyHQ\API\ValueObjects\StringVO("order_by_field"), new \AcademyHQ\API\ValueObjects\StringVO("order_by_direction") );
/*@return updated program_evidence std object */ $program_evidence = $assessor_repository->edit_program_evidence( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_program_evidence_id"), new \AcademyHQ\API\ValueObjects\Integer("is_approved_by_assessor"), new \AcademyHQ\API\ValueObjects\Integer("is_rejected_by_assessor") );
/*@return updated member_program std object */ $member_program = $assessor_repository->edit_member_program( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_member_program_id"), new \AcademyHQ\API\ValueObjects\Integer("is_completed") );
/*@return member_audit_forms std object */ $member_audit_forms = $assessor_repository->member_audits( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ID("your_member_program_id") );
/*@return launch_url std object */ $launch_url = $assessor_repository->member_audit_launch( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ID("your_member_audit_form_id") );
/*@return member_audit_from std object */ $member_audit_from = $assessor_repository->member_audit_view( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\ID("your_member_audit_form_id") );
/*@return updated member_audit_from std object */ $member_audit_from = $assessor_repository->edit_member_audit( new \AcademyHQ\API\ValueObjects\Token("your_token"), new \AcademyHQ\API\ValueObjects\Integer("your_member_audit_form_id"), new \AcademyHQ\API\ValueObjects\Integer("is_assessed"), new \AcademyHQ\API\ValueObjects\Integer("is_verified"), new \AcademyHQ\API\ValueObjects\Integer("is_approved") );
/*@returns organisation_details of created sub organisation*/ $sub_organisation = $GDPR_repository->sub_org_create_inherit_domain( new \AcademyHQ\API\ValueObjects\StringVO("Test Organisation") );
/*@returns member_details of created sub organisation admin*/ $sub_organisation_admin = $GDPR_repository->create_sub_org_admin( new \AcademyHQ\API\ValueObjects\OrganisationID('sub_organisation_id'), \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Email('your_email') );
/*@returns license_details of created license*/ $license_details = $GDPR_repository->create_license( new \AcademyHQ\API\ValueObjects\OrganisationID('sub_organisation_id'), new \AcademyHQ\API\ValueObjects\CourseID("course_id"), new \AcademyHQ\API\ValueObjects\MemberID('admin_id'), new \AcademyHQ\API\ValueObjects\Integer('quantity_of_license'), new \AcademyHQ\API\ValueObjects\StringVO('price_of_license'), new \AcademyHQ\API\ValueObjects\StringVO('currency'), new \AcademyHQ\API\ValueObjects\StringVO('vat_rate'), new \AcademyHQ\API\ValueObjects\StringVO('vat_number') );
/*@return member details of created member*/ $member_details = $GDPR_repository->create_enrolment( new \AcademyHQ\API\ValueObjects\OrganisationID('organisation_id'), new \AcademyHQ\API\ValueObjects\Name::fromNative("First Name", "Last Name"), new \AcademyHQ\API\ValueObjects\Email('email') );
/*@return enrolment details of created enrolment*/ $enrolment_details = $GDPR_repository->create_enrolment( new \AcademyHQ\API\ValueObjects\MemberID('member_id'), new \AcademyHQ\API\ValueObjects\CourseID('course_id') );
/*@return true or false accroding to availability of license*/ $is_available = $GDPR_repository->check_license( new \AcademyHQ\API\ValueObjects\LicenseID('license_id') );
/*@return success message*/ $rollback_message = $GDPR_repository->rollback( new \AcademyHQ\API\ValueObjects\MemberID('member_id'), new \AcademyHQ\API\ValueObjects\OrganisationID('organisation_id') );
/*@return true or false according to vat validation*/ $validation = $GDPR_repository->rollback( new \AcademyHQ\API\ValueObjects\StringVO('country_code'), new \AcademyHQ\API\ValueObjects\StringVO('vat_number') );
/*@returns organisation_details of created sub organisation*/ $sub_organisation = $GDPR_repository->create_partner_with_apis( new \AcademyHQ\API\ValueObjects\StringVO("Test Organisation") );
/*@returns license_details of created license*/ $license_details = $GDPR_repository->create_license_new( new \AcademyHQ\API\ValueObjects\OrganisationID('sub_organisation_id'), new \AcademyHQ\API\ValueObjects\CourseID("course_id"), new \AcademyHQ\API\ValueObjects\MemberID('admin_id'), new \AcademyHQ\API\ValueObjects\Integer('quantity_of_license'), new \AcademyHQ\API\ValueObjects\StringVO('price_of_license'), new \AcademyHQ\API\ValueObjects\StringVO('currency'), new \AcademyHQ\API\ValueObjects\StringVO('vat_rate'), new \AcademyHQ\API\ValueObjects\StringVO('vat_number') );
/*@return created client_details std object */ $client_details = $crms_repository->create_client( new \AcademyHQ\API\ValueObjects\StringVO("Organisation name"), new \AcademyHQ\API\ValueObjects\StringVO("domain name") );
/*@return all public courses details std object */ $course_details = $crms_repository->get_courses( new \AcademyHQ\API\ValueObjects\StringVO("search parameter"), new \AcademyHQ\API\ValueObjects\Integer("page_number") );
/*@return created standard course details std object */ $client_details = $crms_repository->create_course( new \AcademyHQ\API\ValueObjects\StringVO("course name"), new \AcademyHQ\API\ValueObjects\StringVO("course description"), new \AcademyHQ\API\ValueObjects\StringVO("image_url") );
/*@return return license_details std object */ $license_details = $crms_repository->find_license( new \AcademyHQ\API\ValueObjects\OrganisationID("organisation_id"), new \AcademyHQ\API\ValueObjects\CourseID("course_id") );
/*@return all licenses with course details std object */ $license_details = $course_api_repository->get_licenses( new \AcademyHQ\API\ValueObjects\StringVO("search parameter"), new \AcademyHQ\API\ValueObjects\Integer("page_number") );
/*@return all members details std object */ $member_details = $course_api_repository->get_members( new \AcademyHQ\API\ValueObjects\StringVO("search parameter"), new \AcademyHQ\API\ValueObjects\Integer("page_number") );