Comments (9)
Same issue I am facing.
Please help me
from php-openfire-restapi.
Hi,
which authentication type are you using?
It's should be the same authentication type you've choosed in the REST API properties, this was the cause of the problem for bhavin-imobdev.
from php-openfire-restapi.
For authentication ->I am using secret key and both are the same authentication (script and Openfire configuration setting)
Room are visible in Openfire console but when I check it in database the value is not added
from php-openfire-restapi.
Could you enable the debug mode and post me the $api->Debugger()->getRequests() and the $api->Debugger()->getCurlInfo() results?
from php-openfire-restapi.
yes i have enable the debug mode
$api-Debugger()->getRequests() -> [{"url":"http://167.114.98.145:9090/plugins/restapi/v1/chatrooms?servicename=conference","headers":["Accept: application/json","Authorization: a33818PgBpSGgUf9","Content-Type: application/json"],"method":"POST","postData":"{"roomName":"test","naturalName":"test room","description":"testing purpose"}","response":true,"server_output":""}]
$api->Debugger()->getCurlInfo() -> {"url":"http://167.114.98.145:9090/plugins/restapi/v1/chatrooms?servicename=conference","content_type":null,"http_code":201,"header_size":425,"request_size":285,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.002944,"namelookup_time":0.00012,"connect_time":0.000292,"pretransfer_time":0.000297,"size_upload":77,"size_download":0,"speed_download":0,"speed_upload":26154,"download_content_length":0,"upload_content_length":0,"starttransfer_time":0.00288,"redirect_time":0,"redirect_url":"","primary_ip":"167.114.98.145","certinfo":[]}
result output - {"response":true,"output":null}
from php-openfire-restapi.
Could you try to set naturalName as "test_room" instead of "test room"?
from php-openfire-restapi.
I have done that also and still, it's not storing the data
from php-openfire-restapi.
You have to set the parameter "persistent" as true like this:
$payload->setPersistent(true);
I understand that this is not intuitive so i'm going to set this parameter true by default.
Let me know if this works out for you.
from php-openfire-restapi.
Now its working.
Thanks!
from php-openfire-restapi.
Related Issues (9)
- Not able to create room HOT 2
- Retrieving not existing chat rooms returns response == 1 HOT 2
- If ChatRoom payload has non empty members array then group is not available for opening after create HOT 1
- Class 'Client' not found in configure the Client and basic HTTP Authentication. HOT 4
- Failed to install through Composer in Laravel HOT 3
- Issue in printing the requests and connecting to openfire.
- rolesToBroadcast value HOT 1
- Chat room related APIs not working. HOT 4
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 php-openfire-restapi.