Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as URLS from "~/config/urls";
- import * as CONFIG from "~/config/config";
- import axios from "axios";
- export const getFranchiseByZip = function(data) {
- const requestData = {
- securityToken: data.securityToken,
- method: "3",
- zipCode: data.zip
- };
- const queryUrl = `${URLS.API_URL}${URLS.FRANCHISE}`;
- return axios.post(queryUrl, encodeURIComponent(JSON.stringify(requestData)), {
- headers: {
- "Content-Type": "application/json"
- }
- });
- };
- export const changeFranchise = function(data) {
- var requestData = {
- securityToken: service.securityToken,
- method: "2",
- franchiseID: data.franchiseID
- };
- const queryUrl = `${URLS.API_URL}${URLS.CHANGE_FRANCHISE}`;
- return axios.post(queryUrl, encodeURIComponent(JSON.stringify(requestData)), {
- headers: {
- "Content-Type": "application/json"
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement