{"id":18766305,"url":"https://github.com/navarr/verticalresponse","last_synced_at":"2025-12-08T23:30:17.405Z","repository":{"id":57024133,"uuid":"62314801","full_name":"navarr/verticalresponse","owner":"navarr","description":"Vertical Response PHP API Wrapper","archived":false,"fork":false,"pushed_at":"2016-07-30T14:28:10.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T06:22:13.409Z","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/navarr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-30T13:57:48.000Z","updated_at":"2016-06-30T13:58:19.000Z","dependencies_parsed_at":"2022-08-23T13:50:38.422Z","dependency_job_id":null,"html_url":"https://github.com/navarr/verticalresponse","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Fverticalresponse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Fverticalresponse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Fverticalresponse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Fverticalresponse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navarr","download_url":"https://codeload.github.com/navarr/verticalresponse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239669051,"owners_count":19677661,"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-07T18:40:07.599Z","updated_at":"2025-12-08T23:30:17.376Z","avatar_url":"https://github.com/navarr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VerticalResponse API Wrapper\n\n[![Latest Stable Version](https://poser.pugx.org/navarr/verticalresponse/v/stable)](https://packagist.org/packages/navarr/verticalresponse)\n[![License](https://poser.pugx.org/navarr/verticalresponse/license)](https://packagist.org/packages/navarr/verticalresponse)\n[![Scrutinizer](https://scrutinizer-ci.com/g/navarr/verticalresponse/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/navarr/verticalresponse/)\n[![Total Downloads](https://poser.pugx.org/navarr/verticalresponse/downloads)](https://packagist.org/packages/navarr/verticalresponse)\n\n## Introduction\n\nEveryone loves an API Wrapper!  This one wraps the VerticalResponse API (v1).\n\nVerticalResponse's own wrapper was pretty good - but in a PHP folder, with no composer support, strange class names, and \neverything else - I figured it was time to update it!\n\n## How to Use\n\n### Installation\n\nBecause I'm crazy, I tried to keep this library from having any opinions on what library to use for sending HTTP\nrequests.  That's neat, because it means you can throw in your own HTTP client if you want to.\n\nOn that note, however, I also made it default to using Guzzle if you didn't specify one - so that you could keep the\nconstructor as clean as possible.\n\nHOWEVER, I didn't want all of Guzzle packaged with every installation of this - so it's only a _suggested_ dependency.\n\nTL;DR: To use this library, it's recommended you `composer require navarr/verticalresponse navarr/verticalresponse-guzzle`.\n\n### Usage in Code\n\nYou will first have to get an Authorization Token from the VerticalResponse OAuth 2.0 API Endpoint.  This is left as an\nexercise to the reader.\n\nOnce you've done that, just pipe it in to the VerticalResponse Client, like so:\n\n    $vr = new \\VerticalResponse\\Client($authorizationToken);\n    $response = $vr-\u003eget('lists');\n    var_dump($response);\n\nFor a new VerticalResponse account, the output would look something like this:\n\n    class stdClass#35 (3) {\n      public $url =\u003e\n      string(47) \"https://vrapi.verticalresponse.com/api/v1/lists\"\n      public $items =\u003e\n      array(1) {\n        [0] =\u003e\n        class stdClass#29 (2) {\n          public $url =\u003e\n          string(62) \"https://vrapi.verticalresponse.com/api/v1/lists/25288767452069\"\n          public $attributes =\u003e\n          class stdClass#22 (4) {\n            ...\n          }\n        }\n      }\n      public $links =\u003e\n      class stdClass#33 (1) {\n        public $up =\u003e\n        class stdClass#36 (1) {\n          public $url =\u003e\n          string(41) \"https://vrapi.verticalresponse.com/api/v1\"\n        }\n      }\n    }\n    \nThe current version of this library does not provide any sort of ActiveRecord utilities for managing the data from this\nAPI.  That, too, is left as an exercise to the reader.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavarr%2Fverticalresponse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavarr%2Fverticalresponse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavarr%2Fverticalresponse/lists"}