Source: services/api/webaccount/getSocialIntegration.js

import {config} from "../../../Constants";

/**
 * Gets the login token's social integrations
 *
 * @param token is the login token of the user's session
 * @returns {Promise<any>} is the json data returned
 */
export async function getSocialIntegrations(token) {
    return fetch(config.url.API_URL + '/webaccount/socialintegration?login_token=' + token, {
        method: 'GET',
        headers: {
            'Content-Type': 'application/json',
            'Origin': config.url.API_URL
        }
    })
        .then(data => data.json())
}