This file contains 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
#include "Arduino.h" | |
#include <FastLED.h> | |
#include <WiFi.h> | |
#include "heltec.h" | |
#include "jsbutton.h" | |
#define BAND 915E6 | |
#define STRING_LEN 128 |
This file contains 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
// Crowdtangle API to check for 3rd_party posts on facebook. | |
$today = new \DateTime(); | |
if ($fullCrowdTangle) { | |
$startDate = ''; | |
} else { | |
$startDate = '&startDate='.$today->sub(new \DateInterval('P28D'))->format('Y-m-d'); | |
} | |
$ctUrl = 'https://api.crowdtangle.com/links?link='.$fullUrl.$startDate; | |
$ctUrl .= '&platforms=facebook&token=SUPERCOOLTOKEN'; |