Git Product home page Git Product logo

Comments (4)

anilkumarbp avatar anilkumarbp commented on June 22, 2024

Hi @mgw2007,

Have you followed our demo instructions within the SDK : How to Demo

If you have, could you provide us the HTTP request and the Response Headers to investigate more ?

from ringcentral-php.

mgw2007 avatar mgw2007 commented on June 22, 2024

Hi @anilkumarbp

I flow the instructions within the SDK : How to Demo
and the login part working fine

the problem in this part

$request = $rcsdk->createMultipartBuilder()
->setBody(array(
'to' => array(
array('phoneNumber' => $credentials['username']),
),
'faxResolution' => 'High',
))
->add('Plain Text', 'file.txt')
->add(fopen('https://developers.ringcentral.com/assets/images/ico_case_crm.png', 'r'))
->request('/account//extension//fax');
$response = $platform->sendRequest($request);

this the is the Rsponse

============START====================
HTTP/1.1 400 Bad Request
Server: nginx/1.8.0
Date: Thu, 14 Jul 2016 21:25:50 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 49
Connection: keep-alive
Set-Cookie: RCRoutingInfo=B:JjvG963zMhLp2i9ovcWFNFBA3Z0SlO9Db3kZ8SMmxroqJmbYi/T15GSgF4kFzfRE; Path=/
RCRequestId: 89be37a4-4a09-11e6-b36a-005056bb594d
RoutingKey: SJC11P01PAS01
X-LoadMetric: 4
X-Rate-Limit-Group: heavy
X-Rate-Limit-Limit: 10
X-Rate-Limit-Remaining: 9
X-Rate-Limit-Window: 60
Content-Language: en-US
X-AGW-Host: sjc11-c01-agw02.devtest.ringcentral.com

{
"message" : "Bad Request",
"errors" : [ ]
}
============END====================

from ringcentral-php.

anilkumarbp avatar anilkumarbp commented on June 22, 2024

You are required to import the namespace (or class) to the current scope. Please make sure to include below into your file : ( file being used to demo Login and fax )

use RingCentral\SDK\Http\HttpException;
use RingCentral\http\Response;

This should fix your problem. Kindly confirm.

from ringcentral-php.

mgw2007 avatar mgw2007 commented on June 22, 2024

Solved thank you Anil

from ringcentral-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.