{"id":18545578,"url":"https://github.com/traderinteractive/tol-api-js","last_synced_at":"2025-09-15T06:16:25.588Z","repository":{"id":17520433,"uuid":"20308430","full_name":"traderinteractive/tol-api-js","owner":"traderinteractive","description":"A jquery client for the TOL API.","archived":false,"fork":false,"pushed_at":"2014-05-29T21:04:37.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-12-26T06:10:58.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/traderinteractive.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":"2014-05-29T21:04:31.000Z","updated_at":"2017-12-13T16:06:59.000Z","dependencies_parsed_at":"2022-08-31T23:30:48.168Z","dependency_job_id":null,"html_url":"https://github.com/traderinteractive/tol-api-js","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/traderinteractive%2Ftol-api-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traderinteractive%2Ftol-api-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traderinteractive%2Ftol-api-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traderinteractive%2Ftol-api-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traderinteractive","download_url":"https://codeload.github.com/traderinteractive/tol-api-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239262400,"owners_count":19609519,"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-11-06T20:20:58.857Z","updated_at":"2025-02-17T09:18:40.273Z","avatar_url":"https://github.com/traderinteractive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript Client for the TOL API\n\nThis is a jQuery based client for the TraderOnline API.\n\n## Requirements\n\nThe client library is based off and tested with [jQuery](http://jquery.com),\nalthough it may work with [Zepto.js](http://zeptojs.com) or other alternatives.\n\n## Usage\n\nUsage of the API is fairly simple.  It will automatically handle fetching an OAuth2 token for you as long as you setup your credentials beforehand.  If the token expires, it will transparently fetch a new one in the same manner as done before.\n\nHere is an example set of code that relies on this automatic fetching.\n```js\nTOL.client.id = 'yourClientId';\nTOL.client.secret = 'yourClientSecret';\n\nTOL.request({\n    path: 'realms',\n    success: function(data) {\n        console.log(data);\n    }\n});\n```\nPosting data is fairly simple as well:\n```js\nTOL.request({\n    path: 'videos',\n    type: 'POST',\n    data: {\n        video: {\n            realmId: 5,\n            videoType: 'dealer',\n            videoUrl: 'http://youtu.be/9bZkp7q19f0'\n        }\n    },\n    success: function(data) {\n        console.log(data);\n    }\n});\n```\n\n## Development\n\nThe included example is a simple [Node.js](http://nodejs.org) application.  You\ncan start it up with:\n\n  node index.js\n\nAlternatively, using [foreman](http://ddollar.github.com/foreman/), you can just run\n\n  foreman start\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraderinteractive%2Ftol-api-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraderinteractive%2Ftol-api-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraderinteractive%2Ftol-api-js/lists"}