GithubHelp home page GithubHelp logo

Comments (9)

MudraPatel avatar MudraPatel commented on June 3, 2024

Same issue I am facing.
Please help me

from php-openfire-restapi.

gnello avatar gnello commented on June 3, 2024

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.

MudraPatel avatar MudraPatel commented on June 3, 2024

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.

gnello avatar gnello commented on June 3, 2024

Could you enable the debug mode and post me the $api->Debugger()->getRequests() and the $api->Debugger()->getCurlInfo() results?

from php-openfire-restapi.

MudraPatel avatar MudraPatel commented on June 3, 2024

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.

gnello avatar gnello commented on June 3, 2024

Could you try to set naturalName as "test_room" instead of "test room"?

from php-openfire-restapi.

MudraPatel avatar MudraPatel commented on June 3, 2024

I have done that also and still, it's not storing the data

from php-openfire-restapi.

gnello avatar gnello commented on June 3, 2024

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.

MudraPatel avatar MudraPatel commented on June 3, 2024

Now its working.
Thanks!

from php-openfire-restapi.

Related Issues (9)

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.