zendesk / zendesk_api_client_php

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

Implement HelpCenter Article creation #372

Closed abackstrom closed 6 years ago

abackstrom commented 6 years ago

This patch adds support for Article creation via chaining, e.g.:

$article = $client->helpCenter->sections($sectionId)->articles()->create([
    'locale' => 'en-us',
    'title' => 'Smartest Fish in the World',
]);

The unit tests pass. I had some trouble running the "Live" tests against a Sandbox instance.

My team is relatively new to this code base, so I apologize in advance if any of this is off! Creation via chaining seemed to be the expected implementation.

dpawluk commented 6 years ago

Hi team, can we please review this PR and let @abackstrom know if it looks good or there are any other steps before we can approve? Also cc @yuri4zendesk