yarn add @layerok/emojisushi-js-sdk
Server | URL |
---|---|
Production | https://api.emojisushi.com.ua/api |
Staging | https://stage-api.emojisushi.com.ua/api |
const agent = createEmojisushiAgent({
service: "https://example.com"
})
agent.getProducts()
agent.getCategories()
agent.getIngredients()
agent.placeOrder()
agent.getCartProducts()
agent.addCartProduct()
agent.removeCartProduct()
agent.clearCart()
agent.getPaymentMethods()
agent.getWishlists()
agent.addWishlistItem()
agent.getShippingMethods()
agent.getBanners()
agent.register()
agent.login()
agent.restorePassword()
agent.resetPassword()
agent.updateUserPassword()
agent.fetchUser()
agent.updateUser()
agent.updateCustomer()
agent.addAddress()
agent.deleteAddress()
agent.makeAddressDefault()
agent.getCity()
agent.getMainSpot()
agent.getMainCity()
agent.getCities()
agent.getSpot()
agent.getSpots()
agent.log()