{"id":17954358,"url":"https://github.com/txthinking/codeinstall","last_synced_at":"2026-01-15T22:50:05.716Z","repository":{"id":71538357,"uuid":"434845263","full_name":"txthinking/codeinstall","owner":"txthinking","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-22T05:03:18.000Z","size":65835,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-09T05:24:29.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/txthinking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-04T08:18:48.000Z","updated_at":"2024-08-17T02:00:13.000Z","dependencies_parsed_at":"2023-02-27T13:31:44.552Z","dependency_job_id":null,"html_url":"https://github.com/txthinking/codeinstall","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fcodeinstall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fcodeinstall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fcodeinstall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fcodeinstall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txthinking","download_url":"https://codeload.github.com/txthinking/codeinstall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247041961,"owners_count":20874052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T10:14:19.172Z","updated_at":"2026-01-15T22:50:05.684Z","avatar_url":"https://github.com/txthinking.png","language":"HTML","readme":"\nhttps://www.txthinking.com/codeinstall.html\n\n## Web\n\n1. import codeinstall.js\n\n    ```\n    \u003cscript src=\"https://cdn.jsdelivr.net/gh/txthinking/codeinstall@master/codeinstall.js\"\u003e\u003c/script\u003e\n    ```\n\n2. Example\n\n    ```\n    \u003chtml\u003e\n        \u003chead\u003e\n            \u003cscript src=\"https://cdn.jsdelivr.net/gh/txthinking/codeinstall@master/codeinstall.js\"\u003e\u003c/script\u003e\n        \u003c/head\u003e\n        \u003cbody\u003e\n            \u003cbutton id=\"download\" style=\"font-size:100px;\"\u003eLoading...\u003c/button\u003e\n        \u003c/body\u003e\n        \u003cscript\u003e\n           async function a(){\n                try{\n                    var link = await CodeInstall('APPID');\n                    document.querySelector('#download').innerText = \"Download\";\n                    document.querySelector('#download').addEventListener('click', ()=\u003e{\n                        location.href = link;\n                    });\n                }catch(e){\n                    alert(`${e}`);\n                }\n            }\n            a();\n        \u003c/script\u003e\n    \u003c/html\u003e\n    ```\n\n## Android\n\n1. Download SDK: [codeinstallsdk.aar](codeinstallsdk.aar)\n\n    Tips：targetSdkVersion \u003c= 29\n\n2. Example\n\n    ```\n    import codeinstallsdk.Codeinstallsdk;\n    import android.os.Build;\n\n    ...\n\n    try{\n        Codeinstallsdk.init();\n        String code = Codeinstallsdk.get(\"APPID\", Build.VERSION.RELEASE, Build.MODEL);\n        // code comes from the web; or empty string if expired or not found; please cache it\n    } catch (Exception e) {\n        //\n    }\n\n    ```\n\n## iOS\n\n1. Download SDK: [Codeinstallsdk.framework](Codeinstallsdk.framework.zip)\n\n2. Example\n\n    ```\n    import Codeinstallsdk\n    import UIKit\n\n    ...\n\n    CodeinstallsdkInit()\n    var err: NSError? = nil\n    var code = CodeinstallsdkGet(\"APPID\", UIDevice.current.systemVersion, \"iPhone\", \u0026err)\n    if err != nil {\n        //\n        return\n    }\n    // code comes from the web; or empty string if expired or not found; please cache it\n    ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxthinking%2Fcodeinstall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxthinking%2Fcodeinstall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxthinking%2Fcodeinstall/lists"}