Skip to content

Instantly share code, notes, and snippets.

#include "Arduino.h"
#include <FastLED.h>
#include <WiFi.h>
#include "heltec.h"
#include "jsbutton.h"
#define BAND 915E6
#define STRING_LEN 128
@l0c0luke
l0c0luke / Crowd Tangle API Example Using Guzzle
Last active January 14, 2019 23:56
Crowd Tangle API snippet
// 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';