Skip to content

PostPuma/php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostPuma

PostPuma API specifications

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

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

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/PostPuma/vendor/autoload.php');

Getting Started

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;
}

API Endpoints

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

Models

Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

support@postpuma.com

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
    • Generator version: 7.9.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages