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
[ | |
{ | |
"purchase" : { | |
"autoRenewing" : true, | |
"orderId" : "asdfdg345353463rft345435", // hash unique | |
"packageName" : "com.example.abc", | |
"productId" : "book.abc.sub6month", | |
"purchaseTime" : 78354763544, //The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970). | |
"purchaseState" : 0, //The purchase state of the order. Possible values are 0 (purchased), 1 (canceled), or 2 (refunded). | |
"developerPayload" : "34rsfdt3344asdsd...", // Auto create in Android Client |
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
{ | |
filename : "${project.name}-${version.detail.versionName}-${version.createdAt}.apk", | |
filelocation : "${project._id}/${version._id}.apk" | |
icon : "${project._id}/icon.png" | |
} |
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
package asia.fivejuly.chatwork; | |
import android.accessibilityservice.AccessibilityService; | |
import android.os.Bundle; | |
import android.support.v4.view.accessibility.AccessibilityEventCompat; | |
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat; | |
import android.support.v4.view.accessibility.AccessibilityRecordCompat; | |
import android.util.Log; | |
import android.view.accessibility.AccessibilityEvent; | |
import android.view.accessibility.AccessibilityNodeInfo; |
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
# How to create Pin ? | |
# Using OpenSSL | |
# Example with api github | |
# Open terminal | |
# openssl s_client -connect api.github.com:443 | openssl x509 -pubkey -noout | openssl rsa -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64 | |
# Get a key | |
CertificatePinner certificatePinner = new CertificatePinner.Builder() |
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
{ | |
"success" : true, | |
"data":{ | |
} | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder