-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added php 7.4+ support - Added strict types and codestyle fixes
- Loading branch information
Showing
46 changed files
with
1,740 additions
and
2,668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Docs API Client Endpoints Methods | ||
-------------------- | ||
|
||
### Collections | ||
* getCollections($page = 1, $siteId = '', $visibility = 'all', $sort = 'order', $order = 'asc') | ||
* getCollection($collectionIdOrNumber) | ||
* createCollection(Collection $collection, $reload = false) | ||
* updateCollection(Collection $collection, $reload = false) | ||
* deleteCollection($collectionId) | ||
|
||
### Categories | ||
* getCategories($collectionId, $page = 1, $sort = 'order', $order = 'asc') | ||
* getCategory($categoryIdOrNumber) | ||
* createCategory(Category $category, $reload = false) | ||
* updateCategory(Category $category, $reload = false) | ||
* updateCategoryOrder($collectionId, array $categories) | ||
* deleteCategory($categoryId) | ||
|
||
### Articles | ||
* ~~getArticles($categoryId, $page = 1, $status = 'all', $sort = 'order', $order = 'asc', $pageSize = 50)~~ Deprecated. Will be removed soon. | ||
* getArticlesForCategory($categoryId, $page = 1, $status = 'all', $sort = 'order', $order = 'asc', $pageSize = 50) | ||
* getArticlesForCollection($collectionId, $page = 1, $status = 'all', $sort = 'order', $order = 'asc', $pageSize = 50) | ||
* searchArticles($query = '*', $page = 1, $collectionId = '', $status = 'all', $visibility = 'all') | ||
* getRelatedArticles($articleId, $page = 1, $status = 'all', $sort = 'order', $order = 'desc') | ||
* getRevisions($articleId, $page = 1) | ||
* getArticle($articleIdOrNumber, $draft = false) | ||
* getRevision($revisionId) | ||
* createArticle(Article $article, $reload = false) | ||
* updateArticle(Article $article, $reload = false) | ||
* uploadArticle(UploadArticle $uploadArticle, $reload = false) | ||
* updateViewCount($articleId, $count = 1) | ||
* deleteArticle($articleId) | ||
* saveArticleDraft($articleId, $text) | ||
* deleteArticleDraft($articleId) | ||
|
||
### Sites | ||
* getSites($page = 1) | ||
* getSite($siteId) | ||
* createSite(Site $site, $reload = false) | ||
* updateSite(Site $site, $reload = false) | ||
* deleteSite($siteId) | ||
|
||
### Assets | ||
* createArticleAsset(ArticleAsset $articleAsset) | ||
* createSettingsAsset(SettingsAsset $settingsAsset) | ||
|
||
### Redirects | ||
* getRedirects($siteId) | ||
* getRedirect($redirectId) | ||
* findRedirect($url, $siteId) | ||
* createRedirect(Redirect $redirect, $reload = false) | ||
* updateRedirect(Redirect $redirect, $reload = false) | ||
* deleteRedirect($redirectId) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
level: 7 | ||
paths: | ||
- src | ||
- tests | ||
checkGenericClassInNonGenericObjectType: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="./tests/bootstrap.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">src/HelpScoutDocs/</directory> | ||
</include> | ||
<exclude> | ||
<directory suffix=".php">src/HelpScoutDocs/Models/</directory> | ||
<file>src/HelpScoutDocs/ResourceCollection.php</file> | ||
<file>src/HelpScoutDocs/ApiException.php</file> | ||
</exclude> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="HelpScout Docs Api Test Suite"> | ||
<directory>./tests/HelpScoutDocs/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" | ||
colors="true" convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" | ||
stopOnFailure="false" beStrictAboutTestsThatDoNotTestAnything="false" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">src/HelpScoutDocs/</directory> | ||
</include> | ||
<exclude> | ||
<directory suffix=".php">src/HelpScoutDocs/Models/</directory> | ||
<file>src/HelpScoutDocs/ResourceCollection.php</file> | ||
<file>src/HelpScoutDocs/ApiException.php</file> | ||
</exclude> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="HelpScout Docs Api Test Suite"> | ||
<directory>./tests/HelpScoutDocs/</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
Oops, something went wrong.