Skip to content

Instantly share code, notes, and snippets.

View TylerMills's full-sized avatar

Tyler Mills TylerMills

View GitHub Profile
@TylerMills
TylerMills / gcm_ll_push_registration.java
Created December 18, 2015 23:18
Registering with GCM and sending Localytics the registration ID
String regId = GoogleCloudMessaging.getInstance(context).register(SENDER_ID);
Localytics.setPushRegistrationId(regId);
@TylerMills
TylerMills / localytics_cid_push.py
Last active December 18, 2015 05:38
Localytics CID Push
import requests
import json
APP_KEY = 'APP_KEY_HERE' # settings -> apps in localytics dashboard
API_KEY = 'API_KEY_HERE' # settings -> API keys localytics dashboard
API_SECRET = 'API_SECRET_HERE' # settings -> API keys localytics dashboard
headers = {'content-type': 'application/json'}
endpoint = 'https://messaging.localytics.com/v2/push/' + APP_KEY