How to request user authorization without login using php api?


(Gaganpreet Kaur) #1

Hi ,

I am web developer . I am using php dwolla swagger v2 api to make requests . When I am trying to initiate transfer request between funding source and customer . it fails always . I think there is access token issue . Please advice how to get token with send scope without redirecting to dwolla .


(Gaganpreet Kaur) #2

Code -


$transfer = $transfersApi->create([
’_links’ => [
‘source’ => [
‘href’ => ‘https://api.dwolla.com/customers/46e86e79-5221-42be-a724-f4f85b697d77’,
],
‘destination’ => [
‘href’ => ‘https://api.dwolla.com/customers/3218a2f9-daf0-43bf-93dc-a0211873ea92
]
],
‘amount’ => [
‘currency’ => ‘usd’,
‘value’ => ‘1.00’
],
‘metadata’ => [
‘paymentId’ => ‘12345678’,
‘note’ => ‘payment for completed work Dec. 1’,
],
]);


I am getting 400 error . I think i am sending wrong access token