zendesk / zendesk_api_client_php

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

Add `Translations` as a resource name and be able to specify the apiBaseUrl #483

Closed willshen8 closed 2 years ago

willshen8 commented 2 years ago

Goal of this PR:

laravel-i18n-command is a translation library that uses this library to pull down translations files in json format. As we move the endpoint from: https://support.zendesk.com/api/v2/locales/en.json?include=translations&packages=slack-auth-service to: https://static.zdassets.com/translations/slack-auth-service/manifest.json

This is a need to specify the domain and resources to be other than api/v2.

We want to be able to do this:

$this->client->translations()->find();

to return back the contents of the manifest file for a particular service such as slack-auth-service.