This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
FarsiType | |
Version: 1.3.6 | |
http://www.farsitype.ir | |
This script developed to ease typing Farsi (Persian) in web forms where there is no Farsi Keyboard installed on a PC. | |
Works with Internet Explorer, FireFox, Opera and Chrome. | |
For more information and getting the using manual please visit the script website (http://www.farsitype.ir). | |
Copyright 2002-2011 Kaveh Ahmadi (http://www.kavehahmadi.com, email: [email protected]). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch'; | |
import btoa from 'btoa'; | |
function serverCallMaker(user, pass, baseUrl) { | |
const hash = btoa(`${user}:${pass}`); | |
const Authorization = `Basic ${hash}`; | |
const Accept = 'application/json; odata=verbose'; | |
const params = { |