[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7080":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},7080,"MonkeyKing","nixzhu\u002FMonkeyKing","nixzhu","MonkeyKing helps you to post messages to Chinese Social Networks.","",null,"Swift",2721,238,62,17,0,59.14,"MIT License",false,"master",true,[23,24,25,26],"alipay","qq","wechat","weibo","2026-06-12 04:00:32","\u003Cp>\n\u003Ca href=\"http:\u002F\u002Fcocoadocs.org\u002Fdocsets\u002FMonkeyKing\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FMonkeyKing.svg?style=flat\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCarthage-compatible-4BC51D.svg?style=flat\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n# MonkeyKing\n\nMonkeyKing helps you post SNS messages to Chinese Social Networks, without their buggy SDKs.\n\nMonkeyKing uses the same analysis process of [openshare](https:\u002F\u002Fgithub.com\u002F100apps\u002Fopenshare).\nWe also use some reverse engineering tools such as [Hopper Disassembler](https:\u002F\u002Fwww.hopperapp.com\u002F) to unveil several undocumented authentication mechanisms under the hood.\nIt supports sharing **Text**, **URL**, **Image**, **Audio**, **Video**, and **File** to **WeChat**, **QQ**, **Alipay** or **Weibo**.\nMonkeyKing can also post messages to Weibo by a web page. (Note: Audio and Video are exclusive to WeChat or QQ, and File is exclusive to QQ Dataline)\n\nMonkeyKing also supports **OAuth** and **Mobile payment** via WeChat and Alipay!\n\n## Requirements\n\nSwift 5, iOS 9\n\n(For Swift 4.2, use version 1.13.0)\n\n(For Swift 4.1\u002F4.0, use version 1.11.0)\n\n(For Swift 3, use version 1.3.0)\n\n## Examples\n\n### Share\n\nExample: Share to WeChat (微信)：\n\n1. In your Project Target's `Info.plist`, set `URL Type`, `LSApplicationQueriesSchemes` as follow:\n\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fnixzhu\u002FMonkeyKing\u002Fmaster\u002Fimages\u002FinfoList.png\" width=\"600\">\n    \n    You should also add `weixinULAPI` once you enabled Universal Link of your WeChat App.\n\n2. Register account: \u002F\u002F it's not necessary to do it here, but for the sake of convenience\n\n    ```swift\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {\n        MonkeyKing.regsiterAccount(\n            .weChat(\n                appID: \"xxx\",\n                appKey: \"yyy\",\n                miniAppID: nil,\n                universalLink: nil \u002F\u002F FIXME: You have to adopt Universal Link otherwise your app name becomes \"Unauthorized App\"(未验证应用)...\n            )\n        )\n        return true\n    }\n    ```\n\n3. Append the following code to handle callbacks:\n\n    ```swift\n    \u002F\u002F AppDelegate.swift\n    \n    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {\n    \u002F\u002Ffunc application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { \u002F\u002F only for iOS 8\n        return MonkeyKing.handleOpenURL(url)\n    }\n    ```\n    \n    Remember to handle userActivities if you are using `UIScene` in your project:\n    ```swift\n    \u002F\u002F SceneDelegate.swift\n    \n    func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {\n        MonkeyKing.handleOpenUserActivity(userActivity)\n    }\n    ```\n\n4. Prepare your message and ask MonkeyKing to deliver it:\n\n    ```swift\n    @IBAction func shareURLToWeChatSession(sender: UIButton) {\n\n        MonkeyKing.registerAccount(.weChat(appID: \"xxx\", appKey: \"yyy\", miniAppID: nil)) \u002F\u002F you can do it here (just before deliver)\n\n        let message = MonkeyKing.Message.weChat(.session(info: (\n            title: \"Session\",\n            description: \"Hello Session\",\n            thumbnail: UIImage(named: \"rabbit\"),\n            media: .url(URL(string: \"http:\u002F\u002Fwww.apple.com\u002Fcn\")!)\n        )))\n\n        MonkeyKing.deliver(message) { success in\n            print(\"shareURLToWeChatSession success: \\(success)\")\n        }\n    }\n    ```\n\nIt's done!\n\n### OAuth\n\nExample: Weibo OAuth\n\n```swift\nMonkeyKing.oauth(for: .weibo) { (oauthInfo, response, error) -> Void in\n    print(\"OAuthInfo \\(oauthInfo) error \\(error)\")\n    \u002F\u002F Now, you can use the token to fetch info.\n}\n```\n\nor, WeChat OAuth for code only\n\n``` swift\nMonkeyKing.weChatOAuthForCode { [weak self] (code, error) in\n    guard let code = code else {\n        return\n    }\n    \u002F\u002F TODO: fetch info with code\n}\n```\n\nIf the user doesn't have Weibo App installed on their devices then MonkeyKing will use web OAuth:\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fnixzhu\u002FMonkeyKing\u002Fmaster\u002Fimages\u002FwbOAuth.png\" width=\"240\">\n\n### Pay\n\nExample: Alipay\n\n```swift\nlet order = MonkeyKing.Order.alipay(urlString: urlString, scheme: nil)\nMonkeyKing.deliver(order) { result in\n    print(\"result: \\(result)\")\n}\n```\n> You need to configure `pay.php` in a remote server. You can find an example of `pay.php` at the Demo project.\n\n\u003Cbr \u002F>\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fnixzhu\u002FMonkeyKing\u002Fmaster\u002Fimages\u002Falipay.gif\" width=\"240\">\n\n\n### Launch WeChat Mini App\n\n``` swift\nlet path = \"...\"\nMonkeyKing.launch(.weChat(.miniApp(username: \"gh_XXX\", path: path, type: .release))) { result in\n    switch result {\n    case .success:\n        break\n    case .failure(let error):\n        print(\"error:\", error)\n    }\n}\n```\n\nNote that `username` has a `gh_` prefix (原始ID).\n\n### More\n\nIf you like to use `UIActivityViewController` for sharing then MonkeyKing has `AnyActivity` which can help you.\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fnixzhu\u002FMonkeyKing\u002Fmaster\u002Fimages\u002Fsystem_share.png\" width=\"240\">\n\nCheck the demo for more information.\n\n## Installation\n\n### Carthage\n\n```ogdl\ngithub \"nixzhu\u002FMonkeyKing\"\n```\n\n### CocoaPods\n\n```ruby\npod 'MonkeyKing'\n```\n\n### Swift Package Manager\n\n```\nhttps:\u002F\u002Fgithub.com\u002Fnixzhu\u002FMonkeyKing\n```\n\n## Contributors\n\nThanks to all the [contributors](https:\u002F\u002Fgithub.com\u002Fnixzhu\u002FMonkeyKing\u002Fgraphs\u002Fcontributors).\n\n## Credits\n\nWeChat logos from [WeChat-Logo](https:\u002F\u002Fgithub.com\u002FRayPS\u002FWeChat-Logo) by Ray.\n\n## License\n\nMonkeyKing is available under the [MIT License][mitLink]. See the LICENSE file for more info.\n\n[mitLink]:http:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT\n","MonkeyKing 是一个帮助开发者将消息发布到中国社交网络（如微信、QQ、支付宝和微博）的Swift库。它通过分析和逆向工程工具解析了这些平台未公开的认证机制，避免了使用官方SDK可能遇到的问题。支持分享文本、链接、图片、音频、视频及文件等多种类型的内容，并且提供了OAuth认证以及微信和支付宝的移动支付功能。适用于需要在iOS应用中集成国内主流社交平台分享或支付功能的场景，要求最低支持Swift 5和iOS 9。",2,"2026-06-11 03:10:27","top_language"]