{"id":13745156,"url":"https://github.com/codeengine/Manuka","last_synced_at":"2025-05-09T04:34:17.551Z","repository":{"id":140789982,"uuid":"1908795","full_name":"codeengine/Manuka","owner":"codeengine","description":"Forrst ActionScript Library","archived":false,"fork":false,"pushed_at":"2011-07-11T22:55:57.000Z","size":484,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-04T05:05:45.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","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/codeengine.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}},"created_at":"2011-06-17T01:05:29.000Z","updated_at":"2014-03-30T00:05:10.000Z","dependencies_parsed_at":"2023-03-11T23:55:37.993Z","dependency_job_id":null,"html_url":"https://github.com/codeengine/Manuka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeengine%2FManuka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeengine%2FManuka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeengine%2FManuka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeengine%2FManuka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeengine","download_url":"https://codeload.github.com/codeengine/Manuka/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224819837,"owners_count":17375341,"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-08-03T05:01:23.657Z","updated_at":"2024-11-15T17:31:24.992Z","avatar_url":"https://github.com/codeengine.png","language":"ActionScript","readme":"## Manuka Forrst\n\nManuka is a forrst library written to allow applications easy access to forrsts exposed services.\n\nManuka is currently a work in progress, and while most of the library is up and running, expect at least a couple of glitches while it's solidified.\n\nThe driver behind manuka is to create a forrst library that is simple to use and returns fully typed, interfaced objects in a smart, consistent and uniform way.\n\n## Worker Pooling\nManuka is designed with mobile devices in mind, and so every effort is made to ensure that the library uses as little resources as possible.\nIf you are using Manuka in a mobile environment, it is recommended that you use the pooling functionality of Manuka for workers. All that you need to do is\nmake sure that you call the destroy() function on any worker that you no longer require. The WorkerFactory will automatically pool the object for reuse.\nExample usage:\n\n\tworker.destroy();\n\nExample usage:\n\n\tvar worker:IWorker = WorkerFactory.instance.createWorker(Constants.API_GET_STATS);\n\tvar connector:Connector = new Connector();\n\tconnector.addEventListener(ConnectorEvent.ON_STATS, function(event:ConnectorEvent):void{\n\t\tevent.worker.transformResponseObject(event.object);\n\t\ttrace(\"Calls Made: \" + event.worker.response.payload.callsMade + \"\\n\" + \"Rate Limit: \" + event.worker.response.payload.rateLimit);\n\t});\n\tconnector.addEventListener(ConnectorEvent.ON_CONNECTOR_FAULT, function(event:ConnectorEvent):void{\n\t\ttrace(event.response);\n\t});\n\tconnector.execute(worker);\n\n\n## Dependencies\n\nForrst API uses JSON as the communication protocol, and as such Manuka requires the use of as3corelib.swc library in order to provide the required JSON decoding facilities.\n\n## Posts\n\nPosts, when available, are loaded onto the ConnectorEvent's worker object, and may accessed via worker.response.payload.posts.\nA Post object implements the IPost Interface.\n\nAn example of working with a post:\n\n\tfor each (var post:IPost in v){\n\t\ttrace(post.title);\t\t\t\t\t\t\t\n\t}\n\n## Authentication\n\nAlthough authentication is not currently enabled by the forrst api, below is further information of how this would theoretically be done using manuka.\n\nSome requests require parameters to be set, and in this case you simply set the properties on the worker before you send the worker off for execution:\n\n\tvar worker:IWorker = WorkerFactory.instance.createWorker(Constants.API_AUTHORIZE);\n\t(worker as IUsersAuth).username = txtUsername.text;\n\t(worker as IUsersAuth).password = txtPassword.text;\n\t\t\t\n\tvar connector:Connector = new Connector();\n\t\t\t\n\tconnector.addEventListener(ConnectorEvent.ON_USERS_AUTH, function(event:ConnectorEvent):void{\n\t\tevent.worker.transformResponseObject(event.object);\n\t});\n\t\t\t\n\tconnector.addEventListener(ConnectorEvent.ON_CONNECTOR_FAULT, function(event:ConnectorEvent):void{\n\t\ttrace(event.response);\n\t});\n\t\t\t\t\n\tconnector.execute(worker);","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeengine%2FManuka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeengine%2FManuka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeengine%2FManuka/lists"}