Signiant's Media Shuttle Management API endpoints allows you to automate portal and storage management and view active transfers using your own web applications. The System-to-Person API allows you to create upload and download links directly from other applications, letting you accelerate file transfers through Media Shuttle. For more information about getting started with the Media Shuttle API, read our Getting Started Guide. --- You can test API endpoints using your Media Shuttle subscription by generating an API key from your IT Administration user menu, in the Developer section. Once you have generated an API key, click the Authorize button, and enter your API key in the Value field, and click Authorize to enable the examples.
This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.13.3
- Package version: 1.13.3
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
For Node.js
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install media_shuttle_api --save
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
Finally, switch to the directory you want to use your media_shuttle_api from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
You should now be able to require('media_shuttle_api')
in javascript files from the directory you ran the last
command above from.
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/media_shuttle_api then install it via:
npm install YOUR_USERNAME/media_shuttle_api --save
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually
use this library):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Please follow the installation instruction and execute the following JS code:
var MediaShuttleApi = require('media_shuttle_api');
var defaultClient = MediaShuttleApi.ApiClient.instance;
// Configure API key authorization: ApiKey
var ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.apiKeyPrefix['Authorization'] = "Token"
var api = new MediaShuttleApi.PortalsApi()
var portalId = "portalId_example"; // {String} Unique portal identifier
var opts = {
'user': new MediaShuttleApi.PortalMember() // {PortalMember} The user email, role, and permissions to add to the portal
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.addUserToPortal(portalId, opts, callback);
All URIs are relative to https://api.mediashuttle.com/v1
Class | Method | HTTP request | Description |
---|---|---|---|
MediaShuttleApi.PortalsApi | addUserToPortal | POST /portals/{portalId}/users | Add a user to a portal with a role and permissions |
MediaShuttleApi.PortalsApi | assignStorageToPortal | PUT /portals/{portalId}/storage/{storageId} | Assign storage to a portal |
MediaShuttleApi.PortalsApi | assignUserToPortal | PUT /portals/{portalId}/users/{email} | Update the user's role and/or permissions |
MediaShuttleApi.PortalsApi | createPortal | POST /portals | Create a new portal |
MediaShuttleApi.PortalsApi | getMembersFromPortal | GET /portals/{portalId}/users | Retrieve all members from a portal |
MediaShuttleApi.PortalsApi | getPortalMember | GET /portals/{portalId}/users/{email} | Fetch a portal member |
MediaShuttleApi.PortalsApi | getPortalStorage | GET /portals/{portalId}/storage | List the storage locations assigned to a portal |
MediaShuttleApi.PortalsApi | getPortals | GET /portals | List portals |
MediaShuttleApi.PortalsApi | removeUserFromPortal | DELETE /portals/{portalId}/users/{email} | Remove a user from a portal |
MediaShuttleApi.StorageApi | createStorage | POST /storage | Create a new storage location |
MediaShuttleApi.StorageApi | getStorage | GET /storage/{storageId} | Display information about a specific storage location |
MediaShuttleApi.StorageApi | listStorage | GET /storage | List storage location |
MediaShuttleApi.SystemToPersonApi | createPortalSubscription | POST /portals/{portalId}/subscriptions | Subscribe to portal events |
MediaShuttleApi.SystemToPersonApi | createToken | POST /portals/{portalId}/packages/{packageId}/tokens | Create transfer link |
MediaShuttleApi.SystemToPersonApi | deletePortalSubscription | DELETE /portals/{portalId}/subscriptions/{subscriptionId} | Delete a portal subscription |
MediaShuttleApi.SystemToPersonApi | getPackages | GET /portals/{portalId}/packages/{packageId} | Get package information |
MediaShuttleApi.SystemToPersonApi | getPortalSubscriptions | GET /portals/{portalId}/subscriptions | Get portal subscriptions |
MediaShuttleApi.SystemToPersonApi | portalsPortalIdPackagesPackageIdEventsGet | GET /portals/{portalId}/packages/{packageId}/events | Show package events |
MediaShuttleApi.SystemToPersonApi | portalsPortalIdPackagesPackageIdFilesGet | GET /portals/{portalId}/packages/{packageId}/files | Show package contents |
MediaShuttleApi.SystemToPersonApi | portalsPortalIdPackagesPost | POST /portals/{portalId}/packages | Create a new package |
MediaShuttleApi.SystemToPersonApi | putPackages | PUT /portals/{portalId}/packages/{packageId}/files | Add files to a package |
MediaShuttleApi.TransfersApi | getTransfers | GET /transfers | List current active transfers |
- MediaShuttleApi.AzureBlobStorage
- MediaShuttleApi.Error
- MediaShuttleApi.FileRequest
- MediaShuttleApi.FileResponse
- MediaShuttleApi.FileSetRequest
- MediaShuttleApi.FileSetResponse
- MediaShuttleApi.LocalStorage
- MediaShuttleApi.ModelPackage
- MediaShuttleApi.PackageEventResponse
- MediaShuttleApi.PackageEventSetResponse
- MediaShuttleApi.PackageTokenRequest
- MediaShuttleApi.PackageTokenResponse
- MediaShuttleApi.Portal
- MediaShuttleApi.PortalFolder
- MediaShuttleApi.PortalList
- MediaShuttleApi.PortalMember
- MediaShuttleApi.PortalMemberRequest
- MediaShuttleApi.PortalMemberResponse
- MediaShuttleApi.PortalStorage
- MediaShuttleApi.PortalStorageList
- MediaShuttleApi.PortalSubscriptionRequest
- MediaShuttleApi.PortalSubscriptionResponse
- MediaShuttleApi.PortalSubscriptionsResponse
- MediaShuttleApi.S3Storage
- MediaShuttleApi.Storage
- MediaShuttleApi.StorageList
- MediaShuttleApi.Transfer
- MediaShuttleApi.TransferList
- MediaShuttleApi.User
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header