laravel - How to attach the Regulatory Bundle document? - Stack Overflow

I am trying to create the regulatory bundle for each end users, but I am facing the problem while submi

I am trying to create the regulatory bundle for each end users, but I am facing the problem while submitting the required documents for the identity and address proof through Twilio sdk. either directly using the Twilio Api or sdk, the status is draft and also after assigning it to the bundle, the bundle it set to draft. when I manually check the bundle from the Twilio console, all the data are filled and are ok except the documents that I attached. They are not attached there

Can i get solution to properly attach the documents through the Twilio sdk or Api.

I have tried to attach the documents in these ways,

$fileStream = fopen($addressDocumentPath, 'r');

$response = Http::withBasicAuth($twilioClient->username, $twilioClient->password)
                    ->asMultipart()
                    ->attach('File', $fileStream, basename($addressDocumentPath),['Content-Type' => $mimeType])
                    ->post('', [
                        'Attributes' => $attributes,
                        'FriendlyName' => 'Address Proof of ' . $kyc->first_name,
                        'Type' => $kyc->address_document_type,
                    ]);

fclose($fileStream);

and also using curl, but it is not working

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745275961a4620043.html

相关推荐

  • laravel - How to attach the Regulatory Bundle document? - Stack Overflow

    I am trying to create the regulatory bundle for each end users, but I am facing the problem while submi

    21小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信