Skip to content

Instantly share code, notes, and snippets.

View j3k0's full-sized avatar

Jean-Christophe Hoelt j3k0

View GitHub Profile
@j3k0
j3k0 / response.json
Last active May 25, 2020 09:08
POST /v1/validate Response Body
{
"ok": true,
"data": {
"ineligible_for_intro_price": [
"my_subscription"
],
"transaction": { "platform-specific transaction data": "can be ignored" },
"collection": [
{
"id": "my_subscription",
@j3k0
j3k0 / request.json
Last active May 25, 2020 09:04
POST /v1/validate Request Body
{
"id": "com.example.app",
"type": "application",
"transaction": {
"id": "com.example.app",
"type": "ios-appstore",
"appStoreReceipt": "MIIabcdefgh...xyz=="
},
"additionalData": {
"applicationUsername": "james_bond_007"
{
"applicationUsername":"1E6676C70C123AA18222EF001120CAE1",
"purchases": {
"apple:monthly_subcscription": {
"productId":"apple:monthly_subcscription",
"platform":"apple",
"sandbox":true,
"purchaseId":"apple:1000000532000112",
"purchaseDate":"2019-07-29T17:14:00.000Z",
"expirationDate":"2019-07-29T17:19:00.000Z",
{
"applicationUsername": "my-username-123456",
"subscription": {
"transactionId": "apple:12309a12",
"platform": "apple",
"sandbox": true,
"productId": "apple:monthly.basic",
"purchasedAt": "2019-06-24T21:52:16.000Z",
"renewedAt": "2019-06-28T01:07:29.000Z",
"expiresAt": "2019-06-28T01:12:29.000Z",
{
"receiptId": "apple:2700001237189799",
"platform": "apple",
"updatedAt": "2019-07-02T07:25:36.700Z",
"amountsMicros": {
"GBP": 2970000
},
"amountUSD": 3.75,
"numTransactions": 2,
"source": {
{
"paging": {
"skip": 0,
"limit": 100,
"total": 3
},
"rows": [
{
"receiptId": "apple:1000000012309800",
"platform": "apple",
@j3k0
j3k0 / GET-customers-receipts-200.json
Created June 21, 2019 06:39
Response from fovea.billing customers receipts API
[{
"type": "android-appstore",
"appName": "test",
"bundleId": "cc.fovea.purchase.demo",
"receipt": {
"orderId": "GPA.3312-8483-xxxx-xxxxx..1",
"packageName": "cc.fovea.purchase.demo",
"productId": "cc.fovea.purchase.subscription1",
"purchaseTime": 1549447850144,
"purchaseState": 0,
@j3k0
j3k0 / mutt2issue.py
Created November 6, 2018 07:03
mutt script that creates github issues
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## About
# Use the content of an email to create a github issue
#
## Usage
# add this to your .muttrc:
# macro index,pager \ei "<pipe-message>~/path/to/mutt2issue.py<enter>"
#
@j3k0
j3k0 / adt-output.xml
Created September 25, 2015 05:29
Output of adt package
verity:bin-mobile-debug jeko$ adt -package -target apk-debug -connect 172.20.10.4 -storetype pkcs12 -keystore ../android/fovea-devel.p12 -storepass xxxxxx Triominos.apk Triominos-app.xml Triominos.swf icons -extdir /Users/jeko/Fovea_AIR_Toolchains/1.3/libs -extdir /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs
Warning: Resource values-af/messenger_button_strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-af/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-ar/messenger_button_strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-ar/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-bn/messenger_button_strings.xml has been skipped
@j3k0
j3k0 / mxmlc-output.txt
Created September 25, 2015 05:14
Output of mxmlc
Loading configuration: /Users/jeko/Documents/triominos/client/config-mobile-debug.xml
Warning: com.adobe.utils.ArrayUtil is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/ArrayUtil.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/ArrayUtil.as
Warning: com.adobe.utils.NumberFormatter is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/NumberFormatter.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/NumberFormatter.as
Warning: com.adobe.utils.DictionaryUtil is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/DictionaryUtil.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/DictionaryUtil.as
Warning: com.adobe.utils.XMLUtil is defined by multiple files: /Users/jeko/Fovea_AIR_Toolchains/1