{"action":"closed","issue":{"url":"https://api.github.com/repos/auth0/auth0-PHP/issues/117","repository_url":"https://api.github.com/repos/auth0/auth0-PHP","labels_url":"https://api.github.com/repos/auth0/auth0-PHP/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/auth0/auth0-PHP/issues/117/comments","events_url":"https://api.github.com/repos/auth0/auth0-PHP/issues/117/events","html_url":"https://github.com/auth0/auth0-PHP/issues/117","id":190478980,"number":117,"title":"Redirect URL in jobs->sendVerificationEmail","user":{"login":"stadskle","id":6637162,"avatar_url":"https://avatars.githubusercontent.com/u/6637162?v=3","gravatar_id":"","url":"https://api.github.com/users/stadskle","html_url":"https://github.com/stadskle","followers_url":"https://api.github.com/users/stadskle/followers","following_url":"https://api.github.com/users/stadskle/following{/other_user}","gists_url":"https://api.github.com/users/stadskle/gists{/gist_id}","starred_url":"https://api.github.com/users/stadskle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stadskle/subscriptions","organizations_url":"https://api.github.com/users/stadskle/orgs","repos_url":"https://api.github.com/users/stadskle/repos","events_url":"https://api.github.com/users/stadskle/events{/privacy}","received_events_url":"https://api.github.com/users/stadskle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-19T05:54:39Z","updated_at":"2016-11-25T13:17:47Z","closed_at":"2016-11-25T13:17:47Z","body":"Hi,\r\n\r\nThere is one feature that would be great (and simple) to add in the SDK that I now have to make a custom API call to do. That is adding a redirectURL to sendVerificationEmail.\r\n\r\nToday the code is like this (https://github.com/auth0/auth0-PHP/blob/master/src/API/Management/Jobs.php):\r\n```php\r\n<?php\r\npublic function sendVerificationEmail($user_id) \r\n  {\r\n    return $this->apiClient->post()\r\n      ->jobs()\r\n      ->addPath('verification-email')\r\n      ->withHeader(new ContentType('application/json'))\r\n      ->withBody(json_encode([\r\n        'user_id' => $user_id\r\n      ]))\r\n      ->call();\r\n  }\r\n?>\r\n```\r\n\r\nI suggest:\r\n```php\r\n<?php\r\npublic function sendVerificationEmail($user_id, $result_url = null) \r\n  {\r\n    return $this->apiClient->post()\r\n      ->jobs()\r\n      ->addPath('verification-email')\r\n      ->withHeader(new ContentType('application/json'))\r\n      ->withBody(json_encode([\r\n        'user_id' => $user_id,\r\n       'result_url' => $result_url\r\n      ]))\r\n      ->call();\r\n  }\r\n?> \r\n```"}}
{"actor":{"display_login":"glena"}}