File manager - Edit - /home/u478019808/domains/hurairahtrades.com/public_html/wp-content/plugins/suremails/src/api/auth.js
Back
import apiFetch from '@wordpress/api-fetch'; import { __ } from '@wordpress/i18n'; export const get_gmail_auth_url = async ( provider, client_id, client_secret ) => { try { const response = await apiFetch( { path: '/suremails/v1/get-auth-url', method: 'POST', headers: { 'X-WP-Nonce': suremails.nonce, 'Content-Type': 'application/json', }, body: JSON.stringify( { provider, client_id, client_secret, } ), } ); return response; } catch ( error ) { throw new Error( error.message || __( 'There was an issue getting the auth URL.', 'suremails' ) ); } };
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings