Skip to content

Instantly share code, notes, and snippets.

View nanborklabs's full-sized avatar

Nandha Kumar nanborklabs

View GitHub Profile
@nanborklabs
nanborklabs / ParnetKey.js
Created June 27, 2017 09:33
Parent of Snapshot
exports.deliveryUpdate = functions.database.ref('/orders/{pushId}/deliveryStatus').onWrite(snapshot => {
// Fires up , if Delilery status is Changed, to know Whihch Key
console.log("PushId/Parent Key: "+ snapshot.data.ref.parent.key);
}
protected Void doInBackground(Void... params) {
String user = "username=" + "nandhu12195@gmail.com";
String hash = "&hash=" + "d28037624ea694bee8ff95719bf8995bedde1585";
String api = "&apiKey" + "A3kqyA4v4UA-6aqjTecsmcr7AhtnB1m1taU4ee8ywG";
String message = "&message=" + "This is your message";
String sender = "&sender=" + "KL";
String numbers = "&numbers=" + "918675753534";
try {
// Send data