Socialid.login.deleteMacAddress
From Social ID Developers
Revision as of 00:56, 16 December 2015 by Renato.neves (Talk | contribs)
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