Server IP : 92.205.26.207 / Your IP : 216.73.216.16 Web Server : Apache System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64 User : zikryat ( 1002) PHP Version : 8.3.23 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/zikryat/public_html/node_modules/onesignal-node/lib/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
import * as request from 'request'; /** * Remove trailing slash from given string, * * Ex: * input: 'https://localhost/' * output: 'https://localhost' * * @param {string} str String to convert * * @return {string} Stripped string. */ export declare const stripTrailingSlash: (str: string) => string; /** * Given a JSON object, create query string. * * Ex: * input: { limit: 1, offset: 2 } * output: 'limit=1&offset=2' * * @param {object} obj Key-value pairs for query string. * * @return {string} Query string. */ export declare const jsonToQueryString: (obj?: { [key: string]: any; }) => string; /** * Make a request using Basic Authorization header. Return the response as JSON. * * @param {string} uri Url to make the request to. * @param {string} method Method of the request. Ex: GET, POST, PATCH ... * @param {string} authKey Authorization string to be used in header. * @param {{}} body Body of the request. * * @return {Promise<request.ResponseAsJSON>} */ export declare const basicAuthRequest: (uri: string, method: string, authKey: string, body?: {} | undefined) => Promise<request.ResponseAsJSON>; /** * Sign any string payload using specified private key * Reference: https://documentation.onesignal.com/docs/identity-verification#auth-hash-generation * * @param {string} payload String to be signed * @param {string} key Private REST key * @return {string} Signed payload */ export declare const signStringWithKey: (payload: string, key: string) => string; //# sourceMappingURL=utils.d.ts.map