zendesk / zendesk_api_client_php

Official Zendesk API v2 client library for PHP
336 stars 259 forks source link

Can't update category and article via update mathod #404

Closed sagar-magento closed 4 months ago

sagar-magento commented 5 years ago

Update section is working fine but Article and Category are not update, Help me what i am doing wrong? See below

// for article
$client = $this->helper->getZendeskClient();
$article = $client->helpCenter->sections($postData["section"])->articles()->update($postData["id"],[
 'locale' => 'en-us',
 'title' => $postData["title"],
'author_id'=> $postData["author"],
'body'=> $postData["body"]
]);

// for category
$client = $this->helper->getZendeskClient();
$category = $client->helpCenter->categories()->update($postData["id"],[
'position' => 0,
'locale' => 'en-us',
'name' => $postData["title"],
]);
donjose24 commented 5 years ago

can you verify if the $postData['id'] variable has any valid value? snippet looks good to me

sagar-magento commented 5 years ago

Yes i verified it, $postData["id"] getting perfect value, It's id for category and article.

donjose24 commented 5 years ago

I'll try to replicate this on my local. will get back to you

sagar-magento commented 5 years ago

Have you found any solution?

ecoologic commented 5 months ago

Hi,

thank you for your request, are you still interested in a solution for this issue?

scuben commented 5 months ago

Hi,

No, thank you.

BR, Patrick


Patrick Landolt Geschäftsführer

ARTACK WebLab GmbH Schulstrasse 37 8050 Zürich

T: +41 44 222 22 11 D: +41 44 222 22 16 W: https://www.artack.ch

www.mailXpert.ch Professionelles E-Mail Marketing von ARTACK WebLab GmbH

On 1 May 2024, at 08:24, Erik @.***> wrote:

Hi,

thank you for your request, are you still interested in a solution for this issue?

— Reply to this email directly, view it on GitHub https://github.com/zendesk/zendesk_api_client_php/issues/404#issuecomment-2088040302, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHBKJ6YHZJDWTQDGPK4ORLZACDCHAVCNFSM4F7P7BEKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBYHAYDIMBTGAZA. You are receiving this because you are subscribed to this thread.

ecoologic commented 4 months ago

Thanks, closing.