Facing Error in CustomerApi Create Function


(Gaurav Tayal) #1

Hi I am working on Laravel framwrok. Currently While Access your API I am Facing

Call to a member function selectHeaderAccept() on string

This Issue my I know What is Solution for it in Laravel


(Spencer Hunter) #2

@Gaurav_Tayal, Can you provide additional information on where in your code this error was returned? Thanks!


(Gaurav Tayal) #3

Hi Spencer Thanks for Reply

<?php

$customersApi = new DwollaSwagger\CustomersApi($apiClient);

$customer = $customersApi->create([
‘firstName’ => ‘Jane’,
‘lastName’ => ‘Merchant’,
‘email’ => ‘jmerchant@nomail.net’,
‘ipAddress’ => ‘99.99.99.99’
]);

?>

When i tried in Core PHP Environment It was working fine but Now When I integrated it with Laravel 5.4 its Showing Error. Please find attachment. I am getting this error.


(Gaurav Tayal) #4

Issue has been resolved