Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.15 KB

S3Api.md

File metadata and controls

53 lines (33 loc) · 1.15 KB

KodingApi.S3Api

All URIs are relative to https://koding.com/remote.api

Method HTTP request Description
generatePolicy POST /S3.generatePolicy

generatePolicy

DefaultResponse generatePolicy()

Example

var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new KodingApi.S3Api();
apiInstance.generatePolicy().then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

DefaultResponse

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined