{"action":"opened","issue":{"url":"https://api.github.com/repos/botman/botman/issues/811","repository_url":"https://api.github.com/repos/botman/botman","labels_url":"https://api.github.com/repos/botman/botman/issues/811/labels{/name}","comments_url":"https://api.github.com/repos/botman/botman/issues/811/comments","events_url":"https://api.github.com/repos/botman/botman/issues/811/events","html_url":"https://github.com/botman/botman/issues/811","id":324622092,"number":811,"title":"How do I read parameters?","user":{"login":"prdpspkt","id":8027379,"avatar_url":"https://avatars1.githubusercontent.com/u/8027379?v=4","gravatar_id":"","url":"https://api.github.com/users/prdpspkt","html_url":"https://github.com/prdpspkt","followers_url":"https://api.github.com/users/prdpspkt/followers","following_url":"https://api.github.com/users/prdpspkt/following{/other_user}","gists_url":"https://api.github.com/users/prdpspkt/gists{/gist_id}","starred_url":"https://api.github.com/users/prdpspkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prdpspkt/subscriptions","organizations_url":"https://api.github.com/users/prdpspkt/orgs","repos_url":"https://api.github.com/users/prdpspkt/repos","events_url":"https://api.github.com/users/prdpspkt/events{/privacy}","received_events_url":"https://api.github.com/users/prdpspkt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-19T11:14:52Z","updated_at":"2018-05-19T11:14:52Z","closed_at":null,"author_association":"NONE","body":"I have customized BotMan service provider. I have route '/botman/{id}' that sends an identification to load specific facebook token. I want to read that token in code below. How it is possible ?\r\nThanks in Advance.\r\n```\r\n<?php\r\n\r\nnamespace App\\Providers;\r\n\r\nuse BotMan\\BotMan\\Cache\\LaravelCache;\r\nuse Illuminate\\Support\\ServiceProvider;\r\nuse BotMan\\BotMan\\BotManServiceProvider;\r\nuse BotMan\\BotMan\\Storages\\Drivers\\FileStorage;\r\n\r\nclass BotManServiceProvider extends BotManServiceProvider\r\n{\r\n    /**\r\n     * Register the service provider.\r\n     *\r\n     * @return void\r\n     */\r\n    public function register()\r\n    {\r\n        $this->app->singleton('botman', function ($app) {\r\n            $config = config('services.botman', []);\r\n\r\n            $request = app('request');\r\n            $json = json_encode($request->getContent()));\r\n            if ($json) {\r\n                // Look for whatever you need to determine which config to use.\r\n                $config['facebook_token'] = $your_custom_token;\r\n                // etc.\r\n            }\r\n\r\n            $storage = new FileStorage(storage_path('botman'));\r\n\r\n            return BotManFactory::create($config, new LaravelCache(), $app->make('request'),\r\n                $storage);\r\n        });\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"prdpspkt"}}