0.0.7 • Published 2 years ago
@vhiweb/munio-client-js-beta v0.0.7
Installing
npm i @vhiweb/munio-client-js-beta
or if you are using yarn
yarn add @vhiweb/munio-client-js-betaThen you need to import this library into your application.
import Munio from "@vhiweb/munio-client-js-beta";
const munio = new Munio();Init using API
To initialize the app use munio.init() all your host client and apiKey would be found on our munio website or please contact us.
munio.init({
host: "example",
client: `example`,
AppKey: "example",
});Client
- Get Client
For login you can use
getClient()function
munio. getClient({
client: "example",
});Auth
- Login
For login you can use
LoginForm()function
munio.LoginForm({
login: "example",
password: "example ",
});- Register
For login you can use
RegisterForm()function
munio.RegisterForm({
name: "yeay@munio.test",
email: "yeay@munio.test",
username: "08123456781",
phone: "08123456781",
nim: "1601071055",
entry_year: "2022",
graduate_year: "2028",
password: "admin123",
password_confirmation: "admin123",
});Posts
- Get Posts
To get list of Posts you can use
getPosts()function.
munio.getLatestPosts("page number");- Get Categories
To get list of Categories you can use getPostsCategories() function.
munio.getCategoriesPost("Page Number","Page","Slug Category");- Get Detail
To get list of Categories you can use getPostsDetail('your slug') function.
munio.getPostsDetail("your slug");Events
To get list of Event you can use getEvent() function.
munio.getEvent("Category", "Page Number");- Get Upcoming Detail
To get list of Upcoming Event you can use getUpcomingEvent() function.
munio.getUpcomingEvent("Page Number", "Page");- Get Event Detail
To get Detail you can use getEventDetail('your slug') function.
munio.getEventDetail('your slug');- Get Themes
To get list of Themes you can use getThemesEvent() function.
munio.getThemesEvent();Vacancies
- Get Vacancies
To get vacancies you can use
getVacancies()function.
munio.getVacancies("page number");munio.getFilterVacancies("Category", "Industry", "Type", "q", "Page")- Get Categories
To get categories you can use
getVacanciesCategories()function.
munio.getVacanciesCategories();- Get Type
To get Type you can use
getVacanciesTypes()function.
munio.getVacanciesTypes();- Get Industries
To get Industries you can use
getIndustries()function.
munio.getIndustries();- Get Detail
To get Detail you can use
getVacanciesDetail('your slug')function.
munio.getVacanciesDetail("your slug");:warning: Note: Munio Client JS is still under development, and some function might be change.