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 hmac | |
| import hashlib | |
| import time | |
| access_token = 'access_token' | |
| app_secret = 'app_secret' | |
| time = int(time.time()) | |
| hmac_secret = app_secret.encode() | |
| hmac_data = (access_token+'|'+str(time)).encode() | |
| app_secret_proof=hmac.new(hmac_secret,hmac_data,hashlib.sha256).hexdigest() | |
| print('Time:', time) |
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
| using System.Collections; | |
| using System.IO; | |
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| public class ApkDownloaderInstaller : MonoBehaviour | |
| { | |
| // Replace this with your real APK link (must be direct download) | |
| private const string ApkUrl = "https://github.com/Igalia/wolvic/releases/download/v1.8.2/Wolvic-oculusvr-arm64-gecko-metaStore-release.apk"; | |
| private string localPath; |
OlderNewer