{"id":19453730,"url":"https://github.com/samfisherirl/github.ahk-api-for-ahkv2","last_synced_at":"2025-04-25T04:30:59.286Z","repository":{"id":61011201,"uuid":"546274911","full_name":"rylefisher/Github.ahk-API-for-AHKv2","owner":"rylefisher","description":"Github.ahk - Ahk1 \u0026 Ahk2 - a Modular Library to Download latest releases from the Github API and store version data. ","archived":false,"fork":false,"pushed_at":"2024-05-28T01:02:33.000Z","size":287,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T12:57:18.063Z","etag":null,"topics":["api","autohotkey","github","release"],"latest_commit_sha":null,"homepage":"","language":"AutoHotkey","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/rylefisher.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":"2022-10-05T20:34:15.000Z","updated_at":"2025-03-06T22:50:37.000Z","dependencies_parsed_at":"2025-03-01T00:43:05.593Z","dependency_job_id":"69f36478-50a0-4a5b-85b1-4ce34061d25c","html_url":"https://github.com/rylefisher/Github.ahk-API-for-AHKv2","commit_stats":null,"previous_names":["samfisherirl/github.ahk","samfisherirl/github.ahk-api-for-ahkv2","samfisherirl/github.ahk-for-ahkv2","rylekittenhouse/github.ahk-api-for-ahkv2","rylefisher/github.ahk-api-for-ahkv2"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rylefisher%2FGithub.ahk-API-for-AHKv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rylefisher%2FGithub.ahk-API-for-AHKv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rylefisher%2FGithub.ahk-API-for-AHKv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rylefisher%2FGithub.ahk-API-for-AHKv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rylefisher","download_url":"https://codeload.github.com/rylefisher/Github.ahk-API-for-AHKv2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250754621,"owners_count":21481846,"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":["api","autohotkey","github","release"],"created_at":"2024-11-10T17:06:01.450Z","updated_at":"2025-04-25T04:30:57.397Z","avatar_url":"https://github.com/rylefisher.png","language":"AutoHotkey","readme":"# Github.ahk \n\u003ch3\u003eA modular library to download latest releases from the github API, among other github timesavers. \u003c/h3\u003e\n\n \ncredit to JXON v2 creator https://github.com/TheArkive/JXON_ahk2\n\n![image](https://github.com/samfisherirl/Github.ahk-API-for-AHKv2/assets/98753696/5f655888-1b12-40fa-8844-33eaec1c6d41)\n\n\n## AHK v2 Method list \n\n### Quick start - Download a release\n \n```autohotkey\n\nusr := \"samfisherirl\"\nrepo := \"Github.ahk-API-for-AHKv2\"\n\n#Include %A_ScriptDir%\\lib\\github.ahk\n\n;simple\nlatestObj := Github.latest(usr, repo)\nNsgbox latestObj.downloadURLs[1]\n; array has all downloads under release tag, for source code view below\n;latestObj.downloadURLs[1] = url to =\u003e \"releasev1.1.zip\" \n;latestObj.downloadURLs[2] = url to =\u003e \"releasev1.1.rar\"\n```\n\n### Check version data\n \n```autohotkey\n\ncurrentVersion := \"v1\"\nif currentVersion != latestObj.version \n{\n    MsgBox \"Time for an update, latest version is \" \n    . latestObj.version \" updated on \" latestObj.date \"`nNotes:`n\" \n    . latestObj.change_notes \"`n`nLink: \" latestObj.DownloadURLs[1]\n}\n\n```\n\n### Download release\n \n```autohotkey\n\nuserResponse := MsgBox(\n    \t \"Github.ahk-API-for-AHKv2's latest update is dated:`n\"\n    \tlatestObj.date \"`nVersion: \" latestObj.version \n    \t\"`nWould you like to download?\",, '36')\n\nif (userResponse = \"Yes\"){\n\tGithub.Download(latestObj.downloadURLs[1], A_ScriptDir \"\\download\")\n\t;latestObj.downloadURLs[] = array of release files - IE\n\t;latestObj.downloadURLs[1] = url to =\u003e \"releasev1.1.zip\" \n\t;latestObj.downloadURLs[2] = url to =\u003e \"releasev1.1.rar\"\n}\n\nfor url in latestObj.downloadURLs {\n    if InStr(url, \".zip\") {\n        Github.download(url, A_ScriptDir) \n        break\n    }\n}\n\n```\n\n### Download source data and historic releases\n \n```autohotkey\n\nGithub.Source(usr, repo, A_ScriptDir \"\\main.zip\")\n; download main branch source code\n\n; Multiple Assets use-case\n; enumerate ==ALL Historic Releases==\nrepo_string := \"\"\nfor repo in Github.historicReleases(usr, repo) {\n    /* \n        downloadURLs: [],\n        version: \"\",\n        change_notes: \"\",\n        date: \"\"  \n    */\n    repo_string .= repo.name \" version \" repo.version \" was released on \" repo.date \"`nUpdate notes: `n\" \n    repo_string .= repo.change_notes \"`nDownload Link: \" repo.downloadURL \"`n`n\"\n}\nMsgBox(repo_string)\n\n\n``` \n\n## AHK v1 Method list:\n        \n```autohotkey\n        using this url as an example: https://github.com/samfisherirl/github.ahk\n        object: \n        git := new Github(\"username/repository\") ;instantiate the object\n        git.DL(\"geo\") ; downloads the latest release, saving to \"geo.zip\" relative path, you can use any name. \n        git.release() ; Url of release \n        git.details() ; return changes made for latest update\n        git.tag() ; returns only version number, ie \"v1.2333\", ideally for checking if update is necessary\n        anyname := new Github(\"any_username/any_repo\") \n        git := new Github(\"samfisherirl/github.ahk\") ; example using this repository\n```\n \n  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamfisherirl%2Fgithub.ahk-api-for-ahkv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamfisherirl%2Fgithub.ahk-api-for-ahkv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamfisherirl%2Fgithub.ahk-api-for-ahkv2/lists"}