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
import esperclient | |
from esperclient.rest import ApiException | |
from esperclient.models.v0_command_args import V0CommandArgs as CommandArgs | |
# Configure API key authorization: apiKey | |
configuration = esperclient.Configuration() | |
configuration.host = 'https://<insert your domain here>-api.esper.cloud/api' | |
configuration.api_key['Authorization'] = '<insert your API Key here>' | |
configuration.api_key_prefix['Authorization'] = 'Bearer' |
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
from datetime import datetime | |
import time | |
from random import random | |
class PushID(object): | |
# Modeled after base64 web-safe chars, but ordered by ASCII. | |
PUSH_CHARS = '-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz' | |
def __init__(self, server_time=0): |
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
input { | |
tcp { | |
type => "rtfs-tcp" | |
port => 3334 | |
codec => json { | |
charset => "UTF-8" | |
} | |
} | |
udp { | |
type => "rtfs-udp" |