crisp-im / crisp-im/php-crisp-api

CrispClient->websiteConversations->updateMeta() returns an empty array?

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
59
Forks
26
PR merge metrics
No merged PRs in 30d

Description

While in the process of trying to work out how to assign a user while creating a new conversation (but before the message is sent), I discovered that updateMeta() returns an empty array:

array(0) {
}

I believe it should return something similar to this, as the docs suggest? (https://docs.crisp.chat/references/rest-api/v1/#update-conversation-metas)

 {
    "error": false,
    "reason": "updated",
    "data": {}
 }

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with CrispClient->websiteConversations->updateMeta() and compare its return value with the linked Update Conversation Metas REST API documentation. Verify the response shape against the documented example; done means the method returns the expected response instead of an empty array.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.