{"id":25859025,"url":"https://github.com/splix/tijax","last_synced_at":"2025-03-01T20:39:30.269Z","repository":{"id":137846571,"uuid":"1991341","full_name":"splix/tijax","owner":"splix","description":"jQuery-like Http wrapper for Appcelerator Titanium","archived":false,"fork":false,"pushed_at":"2011-07-15T18:31:07.000Z","size":95,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-16T10:52:44.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splix.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-03T15:00:49.000Z","updated_at":"2016-10-10T18:05:42.000Z","dependencies_parsed_at":"2023-03-11T04:42:41.574Z","dependency_job_id":null,"html_url":"https://github.com/splix/tijax","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/splix%2Ftijax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splix%2Ftijax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splix%2Ftijax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splix%2Ftijax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splix","download_url":"https://codeload.github.com/splix/tijax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241423001,"owners_count":19960606,"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":"2025-03-01T20:39:29.736Z","updated_at":"2025-03-01T20:39:30.262Z","avatar_url":"https://github.com/splix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tijax - http wrapper for Appcelerator Titanium\n==========================================================\n\nTijax is a jQuery inspired http wrapper for Appcelerator Titanium.\n\nVersion: 0.3\n\nExamples\n--------\n\nDownload and put `tijax.js` into your's Resource directory, and then:\n\n\n```javascript\nTi.include('tijax.js');\n\n// ....\n\nTijax.get({\n    url: 'http://example.com/url/to/get.json',\n    data: {\n        param1: 'value',\n        param2: 'value'\n    },\n    success: function(data, status, http) {\n        Ti.API.info('Got it ' + JSON.stringify(data));\n    },\n    error: function(http, status) {\n        Ti.API.error('Failed');\n    },\n    complete: function(http, status) {\n        Ti.API.info('Complete');\n    }\n});\n\n```\n\nor download file:\n\n```javascript\nTi.include('tijax.js');\n\n// ....\n\nTijax.download({\n    url: 'http://example.com/test.jpg',\n    file: targetFile,\n    success: function() {\n        Ti.API.debug(\"Image have downloaded into \" + targetFile.nativePath);\n    }\n});\n```\nfile from `http://example.com/test.jpg` will be downloaded into local file `targetFile` (must be `Ti.Filesystem.File`)\n\nHow to use\n----------\n\nMethods:\n\n * get - `Tijax.get`\n * post - `Tijax.post`\n * download - `Tijax.download`\n\nOptions:\n\n * url - url for request\n * data - data to be sent (map of strings)\n * timeout - time in millisecond (default is 10000 = 10 seconds)\n * headers - headers for request (map of strings)\n * success - a function to be called if the request successed. Arguments:\n   * `data` - map, parsed JSON response\n   * `http` - used Ti.Network.HTTPClient\n * error - a function to be called if the request failed. Arguments:\n   * `http` - used Ti.Network.HTTPClient\n   * `status` - request string, as string with one of following value: forbidden, notfound, notallowed, error\n   * `body` - response body, as text\n * complete - a function to be called when the request finished (after success and error callbacks are executed). Arguments:\n   * `http` - used Ti.Network.HTTPClient\n   * `status` - status of request, values: value: forbidden, notfound, notallowed, error or success\n\nLicense\n-------\n\nLicensed under the Apache License, Version 2.0\n\nQuestions?\n----------\n\nHave any questions? Contact me: igor@artamonov.ru","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplix%2Ftijax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplix%2Ftijax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplix%2Ftijax/lists"}