2017 © Pedro Peláez
 

library metaform-api-client-php

image

metatavu/metaform-api-client-php

  • Wednesday, June 6, 2018
  • by metatavu
  • Repository
  • 3 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 67 % Grown

The README.md

metaform-api-client-php

REST API for Metaform, (*1)

This PHP package is automatically generated by the Swagger Codegen project:, (*2)

  • API version: 0.0.1
  • Package version: 0.1.1
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later, (*3)

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:, (*4)

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/metatavu/metaform-api-client-php.git"
    }
  ],
  "require": {
    "metatavu/metaform-api-client-php": "*@dev"
  }
}

Then run composer install, (*5)

Manual Installation

Download the files and include autoload.php:, (*6)

    require_once('/path/to/metaform-api-client-php/vendor/autoload.php');

Tests

To run the unit tests:, (*7)

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:, (*8)

setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Metatavu\Metaform\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Metatavu\Metaform\Api\AttachmentsApi();
$realmId = "realmId_example"; // string | realm id
$attachmentId = "attachmentId_example"; // string | Attachment id

try {
    $result = $api_instance->findAttachment($realmId, $attachmentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AttachmentsApi->findAttachment: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://localhost, (*9)

Class Method HTTP request Description
AttachmentsApi findAttachment GET /realms/{realmId}/attachments/{attachmentId} Find a attachment by id
AttachmentsApi findAttachmentData GET /realms/{realmId}/attachments/{attachmentId}/data Find a attachment data by id
EmailNotificationsApi createEmailNotification POST /realms/{realmId}/metaforms/{metaformId}/emailNotifications create new form email notification
EmailNotificationsApi deleteEmailNotification DELETE /realms/{realmId}/metaforms/{metaformId}/emailNotifications/{emailNotificationId} Deletes an email notification
EmailNotificationsApi findEmailNotification GET /realms/{realmId}/metaforms/{metaformId}/emailNotifications/{emailNotificationId} Find a single emai notification
EmailNotificationsApi listEmailNotifications GET /realms/{realmId}/metaforms/{metaformId}/emailNotifications Lists form email notifications
EmailNotificationsApi updateEmailNotification PUT /realms/{realmId}/metaforms/{metaformId}/emailNotifications/{emailNotificationId} Updates email notification
ExportThemeFilesApi createExportThemeFile POST /realms/{realmId}/exportThemes/{exportThemeId}/files create new export theme file
ExportThemeFilesApi deleteExportThemeFile DELETE /realms/{realmId}/exportThemes/{exportThemeId}/files/{exportThemeFileId} Deletes an export theme file
ExportThemeFilesApi findExportThemeFile GET /realms/{realmId}/exportThemes/{exportThemeId}/files/{exportThemeFileId} Finds single export theme file
ExportThemeFilesApi listExportThemeFiles GET /realms/{realmId}/exportThemes/{exportThemeId}/files Lists files of export theme
ExportThemeFilesApi updateExportThemeFile PUT /realms/{realmId}/exportThemes/{exportThemeId}/files/{exportThemeFileId} Updates export theme file
ExportThemesApi createExportTheme POST /realms/{realmId}/exportThemes create new form export theme
ExportThemesApi createExportThemeFile POST /realms/{realmId}/exportThemes/{exportThemeId}/files create new export theme file
ExportThemesApi deleteExportTheme DELETE /realms/{realmId}/exportThemes/{exportThemeId} Deletes an export theme
ExportThemesApi deleteExportThemeFile DELETE /realms/{realmId}/exportThemes/{exportThemeId}/files/{exportThemeFileId} Deletes an export theme file
ExportThemesApi findExportTheme GET /realms/{realmId}/exportThemes/{exportThemeId} Finds single export theme
ExportThemesApi findExportThemeFile GET /realms/{realmId}/exportThemes/{exportThemeId}/files/{exportThemeFileId} Finds single export theme file
ExportThemesApi listExportThemeFiles GET /realms/{realmId}/exportThemes/{exportThemeId}/files Lists files of export theme
ExportThemesApi listExportThemes GET /realms/{realmId}/exportThemes Lists form export themes
ExportThemesApi updateExportTheme PUT /realms/{realmId}/exportThemes/{exportThemeId} Updates export theme
ExportThemesApi updateExportThemeFile PUT /realms/{realmId}/exportThemes/{exportThemeId}/files/{exportThemeFileId} Updates export theme file
MetaformsApi createMetaform POST /realms/{realmId}/metaforms create new Metaform
MetaformsApi deleteMetaform DELETE /realms/{realmId}/metaforms/{metaformId} Deletes Metaform
MetaformsApi findMetaform GET /realms/{realmId}/metaforms/{metaformId} Finds single Metaform
MetaformsApi listMetaforms GET /realms/{realmId}/metaforms Lists Metaforms
MetaformsApi updateMetaform PUT /realms/{realmId}/metaforms/{metaformId} Updates Metaform
RepliesApi createReply POST /realms/{realmId}/metaforms/{metaformId}/replies create new form reply
RepliesApi deleteReply DELETE /realms/{realmId}/metaforms/{metaformId}/replies/{replyId} Deletes a reply
RepliesApi export GET /realms/{realmId}/metaforms/{metaformId}/export Exports metaform data
RepliesApi findReply GET /realms/{realmId}/metaforms/{metaformId}/replies/{replyId} Find a single reply
RepliesApi listReplies GET /realms/{realmId}/metaforms/{metaformId}/replies Lists form replies
RepliesApi replyExport GET /realms/{realmId}/metaforms/{metaformId}/replies/{replyId}/export Exports reply data
RepliesApi updateReply PUT /realms/{realmId}/metaforms/{metaformId}/replies/{replyId} Updates reply

Documentation For Models

Documentation For Authorization

bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

The Versions

06/06 2018

dev-master

9999999-dev http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

06/06 2018

0.0.5

0.0.5.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

05/06 2018

0.0.4

0.0.4.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

25/04 2018

0.0.3

0.0.3.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

25/04 2018

0.0.2

0.0.2.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

25/04 2018

0.0.1

0.0.1.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk