PostPuma API specifications
PHP 7.4 and later. Should also work with PHP 8.0.
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/postpuma/php-sdk.git"
}
],
"require": {
"postpuma/php-sdk": "*@dev"
}
}Then run composer install
Download the files and include autoload.php:
<?php
require_once('/path/to/PostPuma/vendor/autoload.php');Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = PostPuma\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PostPuma\Api\AccountsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$account_uuid = 'account_uuid_example'; // string | Account UUID
$workspace_id = 'workspace_id_example'; // string
try {
$result = $apiInstance->getAccount($account_uuid, $workspace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->getAccount: ', $e->getMessage(), PHP_EOL;
}All URIs are relative to https://app.postpuma.com/app/api
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountsApi | getAccount | GET /{workspaceId}/accounts/{accountUuid} | Get account |
| AccountsApi | listAccounts | GET /{workspaceId}/accounts | List accounts |
| MediaApi | deleteMediaFiles | DELETE /{workspaceId}/media | Delete media files |
| MediaApi | getMediaFile | GET /{workspaceId}/media/{mediaUuid} | Get media file |
| MediaApi | listMediaFiles | GET /{workspaceId}/media | List media files |
| MediaApi | uploadMediaFile | POST /{workspaceId}/media | Upload media file |
| PostsApi | createPost | POST /{workspaceId}/posts | Create post |
| PostsApi | deletePost | DELETE /{workspaceId}/posts/{postUuid} | Delete post |
| PostsApi | deletePosts | DELETE /{workspaceId}/posts | Delete posts |
| PostsApi | getPost | GET /{workspaceId}/posts/{postUuid} | Get post |
| PostsApi | listPosts | GET /{workspaceId}/posts | List posts |
| PostsApi | queuePost | POST /{workspaceId}/posts/add-to-queue/{postUuid} | Queue post |
| PostsApi | schedulePost | POST /{workspaceId}/posts/schedule/{postUuid} | Schedule post |
| PostsApi | updatePost | PUT /{workspaceId}/posts/{postUuid} | Update post |
| TagsApi | createTag | POST /{workspaceId}/tags | Create tag |
| TagsApi | deleteTag | DELETE /{workspaceId}/tags/{tagUuid} | Delete tag |
| TagsApi | getTag | GET /{workspaceId}/tags/{tagUuid} | Get tag |
| TagsApi | listTags | GET /{workspaceId}/tags | List tags |
| TagsApi | updateTag | PUT /{workspaceId}/tags/{tagUuid} | Update tag |
- Account
- AccountData
- CreatePostRequest
- CreateTagRequest
- DeleteMediaFiles200Response
- DeleteMediaFilesRequest
- DeletePostRequest
- DeletePosts200Response
- DeletePosts200ResponseOneOf
- DeletePosts200ResponseOneOf1
- DeletePostsRequest
- ListAccounts200Response
- ListMediaFiles200Response
- ListPosts200Response
- ListTags200Response
- MediaFile
- Post
- PostUser
- QueuePost200Response
- SchedulePostRequest
- Tag
- UpdatePostRequest
- UpdateTagRequest
- Version
- VersionContent
- VersionOptions
- VersionOptionsInstagram
- VersionOptionsLinkedin
- VersionOptionsMastodon
- VersionOptionsPinterest
- VersionOptionsPinterestBoards
- VersionOptionsTiktok
- VersionOptionsTiktokPrivacyLevel
- VersionOptionsYoutube
Authentication schemes defined for the API:
- Type: Bearer authentication
To run the tests, use:
composer install
vendor/bin/phpunitThis PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0.0- Generator version:
7.9.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen