This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension MessageFilterExtension: ILMessageFilterQueryHandling, ILMessageFilterCapabilitiesQueryHandling { | |
func handle( | |
_ capabilitiesQueryRequest: ILMessageFilterCapabilitiesQueryRequest, | |
context: ILMessageFilterExtensionContext, | |
completion: @escaping (ILMessageFilterCapabilitiesQueryResponse) -> Void | |
) { | |
os_log("Handling capabilities query", log: self.logger, type: .debug) // <-- this does not get called | |
let response = ILMessageFilterCapabilitiesQueryResponse() | |
response.transactionalSubActions = [.none] | |
response.promotionalSubActions = [.none] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +mbordash is my blockchain ID. https://onename.com/mbordash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Load the AJAX API--> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
// Load the Visualization API and the piechart package. | |
google.load('visualization', '1.0', {'packages':['corechart']}); | |
// Set a callback to run when the Google Visualization API is loaded. | |
google.setOnLoadCallback(drawChart); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Protect your API token with a server side json proxy script | |
$headers = array( | |
'Authorization: Bearer INSERT YOUR TOKEN HERE' | |
); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// increment a metric @ squaretable.io | |
$scope = "listens" | |
$key = "mediaId281"; | |
$bearerToken = "YOUR SQUARETABLE.IO TOKEN" | |
$apiUrl = "http://api.squaretable.io/2.0/event/put?action=inc&scope=" . $scope . "&key=" . $key; |