Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

SAMdesk/sam-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAM .NET

Overview

This repo contains a .NET middleware to simplify the usage of the SAM API.

Installation

Binaries are available in the bin folder (see SAM.dll).

Documentation

Up to date API Documentation can be found here.

API Overview

Every resource is accessed via a SamClient instance:

SamClient client = new SamClient(AuthType.API_KEY, "<API_KEY>");
// Account account = client.RetrieveAccount();

Authentication

In order to use the SAM API, you must provide the SamClient instance with an API key. There are 3 ways to do this:

  1. Pass it in the constructor:
SamClient client = new SamClient(AuthType.API_KEY, "<API_KEY>");
  1. Call setAuth on an existing SamClient instance:
SamClient client = new SamClient();
client.setAuth(AuthType.API_KEY, "<API_KEY>");
  1. Pass a SamAuth object as the auth parameter to a request method:
SamClient client = new SamClient();
client.RetrieveAccount(new SamAuth(AuthType.API_KEY, "<API_KEY>"));

Available resources & methods

  • Account
  • RetrieveAccount([auth])
  • ListAccountUsers([auth])
  • Assets
  • ListAssets(storyId[, parameters, auth])
  • RetrieveAsset(storyId, assetId[, parameters, auth])
  • CreateAsset(storyId, parameters[, auth])
  • Stories
  • ListStories([parameters, auth])
  • RetrieveStory(storyId[, parameters, auth])
  • CreateStory(parameters[, auth])
  • DeleteStory(storyId[, auth])
  • Upload
  • UploadMedia(bytes, mimetype[, name, auth])
  • StartUpload(parameters[, auth])
  • AppendUpload(parameters[, auth])
  • CompleteUpload(mediaId[, auth])
  • User
  • RetrieveUser([auth])

Author

Officially maintained by SAM.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages