Socialid.login.deleteMacAddress

From Social ID Developers
Jump to: navigation, search

Contents

Description

API to delete a MAC Address related to a user.

Usage

 socialid.login.deleteMacAddress(macAddress, handler)

Parameters

macAddress required A MAC Address.
handler optional Callback function to handle the API response.

API Response

data Always "null". This API does not return data.
status The API response status. Can be success, if there is a user logged in the current login session and the MAC address was successfully deleted, or not_found, if there is no user logged in the current login session or the MAC Address is not related to the user.

Example

Delete the MAC Address 4A:F9:76:DC:E2:12 from the user logged in the current login session:

 socialid.login.init(1);
 var handler = function(response) {
    if (response.status == "success") {
       alert("MAC Address successfully deleted.");
    } else {
       alert("Could not delete the MAC Address.");
    }
 }
 socialid.login.deleteMacAddress("4A:F9:76:DC:E2:12", handler);

You can test this parameters in our playground: https://sid-examples.herokuapp.com/social_logins/playground

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox