Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Face issue while sending the mms with image. #95

Open
navichawla92 opened this issue Mar 22, 2021 · 0 comments
Open

Face issue while sending the mms with image. #95

navichawla92 opened this issue Mar 22, 2021 · 0 comments

Comments

@navichawla92
Copy link

I am using the mms api to send the mms but it is not working as it give error of 400 of request not valid where as same code is working fine on local system but it is not working on the server.
$RECIPIENT = '##';
$fromNumber = '###';

    $body = array(
             'from' => array ('phoneNumber' => $fromNumber),
             'to' => array(
                      array('phoneNumber' => $RECIPIENT)
                    ),
            'text' => 'Test'
           );
    $request = $rcsdk->createMultipartBuilder()
        ->setBody( $body )
        ->add(fopen(__DIR__.'/811737079524-32x32.jpg', 'r'))
        ->request('/account/~/extension/~/sms');
      $r = $platform->sendRequest($request);

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant