Comments (4)
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.
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.
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.
Solved thank you Anil
from ringcentral-php.
Related Issues (20)
- PHPOption deprecation warning
- 400 Bad Request (and additional error happened during JSON parse: Response is not JSON)
- FatalError: Unparenthesized `a ? b : c ? d : e` is not supported HOT 2
- php 7.4 Ternary Operator Issue HOT 1
- Undefined array key "code_challenge" HOT 1
- Issue with PHP version 7.4
- telephony webhook end
- Do not specify default "Accept" header HOT 1
- Upgrade PubNub dependency HOT 4
- Root package 'ringcentral/ringcentral-php' cannot require itself in its composer.json
- Required changes for Global Authentication Changes? :question:
- Consider using phar bundler
- Packagist is not auto-updating this package HOT 1
- After a while, notifications stop arriving
- Symfony/event-dispatcher 5.1.0 not compatible HOT 1
- Whitesource CVE-2020-28032
- Face issue while sending the mms with image.
- trying to filter extension list results in an error with urlencode()
- Client error: `POST https://platform.devtest.ringcentral.com/restapi/oauth/token` resulted in a 400 Bad Request HOT 1
- Composer error: incompatible with guzzlehttp/psr7 2.x+ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ringcentral-php.