我刚开始在Laravel 5中使用Guzzle,目前正在尝试向API提交表单,但我在设置API网址中的参数时遇到了问题。
这是我的代码:
$client = new GuzzleHttp\Client(['base_uri' => 'URL for API/RegisterEmailAndCellPhoneNumber?cellphonenumber=cellphonenumber&emailaddress=emailaddress&programtag=programtag&programid=programid']);
<div class="form-group margin-bottom-sm">
<label for="RegisterEmail">Email</label>
<input type="email" class="form-control" id="RegisterEmail" name="emailaddress">
</div>
<div class="form-group margin-bottom-sm">
<label for="RegisterPhonenr">Phonenumber</label>
<input type="text" class="form-control" id="RegisterPhonenr" name="cellphonenumber">
</div>
有任何建议怎么做?