{"id":40938666,"url":"https://github.com/paravibe/gototraining","last_synced_at":"2026-01-22T04:31:35.553Z","repository":{"id":57035875,"uuid":"279291987","full_name":"paravibe/gototraining","owner":"paravibe","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-13T07:49:39.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T02:21:34.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paravibe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-13T12:07:50.000Z","updated_at":"2025-03-13T07:49:34.000Z","dependencies_parsed_at":"2022-08-23T20:51:03.575Z","dependency_job_id":null,"html_url":"https://github.com/paravibe/gototraining","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/paravibe/gototraining","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paravibe%2Fgototraining","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paravibe%2Fgototraining/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paravibe%2Fgototraining/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paravibe%2Fgototraining/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paravibe","download_url":"https://codeload.github.com/paravibe/gototraining/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paravibe%2Fgototraining/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28654616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-01-22T04:31:35.357Z","updated_at":"2026-01-22T04:31:35.544Z","avatar_url":"https://github.com/paravibe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoToTraining PHP wrapper\n\n[![Latest Version](https://img.shields.io/github/release/paravibe/gototraining.svg?style=flat-square)](https://github.com/paravibe/gototraining/releases)\n[![Build Status](https://img.shields.io/travis/paravibe/gototraining.svg?style=flat-square)](https://travis-ci.org/paravibe/gototraining)\n[![Total Downloads](https://img.shields.io/packagist/dt/paravibe/gototraining.svg?style=flat-square)](https://packagist.org/packages/paravibe/gototraining)\n\n## Installation\n`composer require paravibe/gototraining`\n\n## How to use\n\n### Initialize client\n`$client = new \\LogMeIn\\GoToTraining\\Client($access_token, $values);`\n\nWhere `$access_token` is a token retrived during authorization procedure - https://developer.goto.com/guides/HowTos/03_HOW_accessToken/  \nand `$values` are response data that contain:\n* account_key\n* account_type\n* email\n* firstName\n* lastName\n* organizer_key\n\nUse any method described here https://developer.goto.com/GoToTrainingV1\nby passing proper HTTP method and endpoint to `createRequest()` method.\n\n### GET/DELETE methods\n```php\n$get = $client-\u003ecreateRequest('GET', \"organizers/{$organizer_key}/trainings\")-\u003eexecute();\n$data = $get-\u003egetDecodedBody();\n```\n### POST/PUT methods\n```php\n$post_data = array(\n  'name' =\u003e 'Training',\n  'description' =\u003e 'Test API integration',\n  'times' =\u003e [\n    [\n      'startDate' =\u003e '2021-03-02T12:00:00Z',\n      'endDate' =\u003e '2021-03-02T13:00:00Z',\n    ]\n  ],\n  'timeZone' =\u003e 'Europe/Kiev',\n);\n\n$new = $client-\u003ecreateRequest('POST', \"organizers/{$organizer_key}/trainings\")\n  -\u003eattachBody($post_data)\n  -\u003eexecute();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparavibe%2Fgototraining","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparavibe%2Fgototraining","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparavibe%2Fgototraining/lists"}