{"id":15789926,"url":"https://github.com/gettocat/vktoken","last_synced_at":"2025-03-31T18:27:36.739Z","repository":{"id":94927381,"uuid":"41846624","full_name":"gettocat/vktoken","owner":"gettocat","description":"Simple class on php, created for makind long-life token on vk.com.","archived":false,"fork":false,"pushed_at":"2015-09-03T07:19:11.000Z","size":144,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-05T22:04:13.281Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gettocat.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":"2015-09-03T07:07:46.000Z","updated_at":"2015-09-03T07:10:37.000Z","dependencies_parsed_at":"2023-03-08T14:30:28.624Z","dependency_job_id":null,"html_url":"https://github.com/gettocat/vktoken","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/gettocat%2Fvktoken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettocat%2Fvktoken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettocat%2Fvktoken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettocat%2Fvktoken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gettocat","download_url":"https://codeload.github.com/gettocat/vktoken/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246516988,"owners_count":20790331,"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-10-04T22:04:13.295Z","updated_at":"2025-03-31T18:27:36.714Z","avatar_url":"https://github.com/gettocat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vktoken\nSimple class on php, created for makind long-life token on vk.com.\n\n## usage\n\n* create object:\n```php \n$token = vktoken::create(VK_APP_ID, VK_APP_SECRET);\n```\n\n* using vktoken to get user info on exists token.\n```php\n$user = vktoken::getUserInfo($token);\n\nif ($user){\n\t$user['first_name'];\n\t$user['last_name'];\n\t$user['photo_100'];\n\t$user['status'];\n\t$user['last_seen'];\n}\n```\n\n* create auth link:\n```php\n$link = $token-\u003elink('wall,friends,photos');\n```\n\n* get token by url:\n```php\n$res = $token-\u003egetToken($code_url);\n//$code_url is string like: http://api.vk.com/blank.html#code=5a38b024efa465fb51\nif ($res['token']) {\n    //save $res['token'] into db.\n    //$res['user'] - it is field of token user\n    $user = $res['user'];\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgettocat%2Fvktoken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgettocat%2Fvktoken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgettocat%2Fvktoken/lists"}