This file contains hidden or 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
| console.log("🏃 appStoreConnectAPIFromNode.js running 🏃") | |
| const fs = require('fs'); | |
| const jwt = require('jsonwebtoken'); // npm i jsonwebtoken | |
| // You get privateKey, apiKeyId and issuerId from your Apple App Store Connect account | |
| const privateKey = fs.readFileSync("./AuthKey_123456789Z.p8") // this is the file you can only download once and should treat like a real, very precious key. | |
| const apiKeyId = "123456789Z" | |
| const issuerId = "12345678-CLAP-FORR-THIS-GIBBERISHLOLz" | |
| let now = Math.round((new Date()).getTime() / 1000); // Notice the /1000 | |
| let nowPlus20 = now + 1199 // 1200 === 20 minutes |
This file contains hidden or 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 Foundation | |
| import UIKit | |
| import WebKit | |
| class ViewController: UIViewController, WKNavigationDelegate, WKUIDelegate { | |
| var webView: WKWebView! | |
| var activityIndicator: UIActivityIndicatorView! | |
| @IBOutlet var webViewContainer: UIView! | |
This file contains hidden or 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
| #!/bin/bash | |
| # Copyright (c) <2018> <Maksym Rusynyk> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # |