Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

liamstevens/api-introduction

 
 

Repository files navigation

api-introduction

A basic introduction to the TASS API's.

Examples

  • encryptDecrypt.cs - A basic C# Encrypt and Decrypt class example
  • POST.html - A HTML page with a form
  • GET.html - A HTML page with an anchor
  • DELPHI POST Example Function - A Delphi Example ( @filebound )
  • EncryptDecrypt.ps1 - PowerShell Encrypt and Decrypt ( @sam-fisher )
  • encryptDecrypt.cfm - CFML Encrypt and Decrypt example ( @ajdyka )
  • encryptDecrypt.py - Python Encrypt and Decrypt example ( @liamstevens )
  • encryptDecrypt3.py - Python3 Encrypt and Decrypt example ( @liamstevens )

Request URL Construction

  • Overview

    The request URL is constructed using several parts.

     {protocol}://{domain}/tassweb/api/?method={method}&appcode={appcode}&company={companycode}&v=2&token={token}
  • Protocol

    The protocol is defined in the TASS API Setup in tass.web. This can be set to allow HTTP or HTTPS requests. It can also be set to restrict requests to HTTPS only.

  • Domain

    The domain of the tass.web server you wish to make the request to.

  • Method

    The API Method you wish to invoke.

  • App Code

    The App Code as defined in the tass.web TASS API Setup.

  • Company Code

    The Company Code for which the TASS API App has been configured in tass.web.

  • Token

    The token is generated by encrypting the parameter string with your Token Key.

     Encrypt( '{"include_label":"true"}'
     , '+TG1ZTqy0hTu5h0KMhCP0A=='
     , 'AES/ECB/PKCS5Padding'
     , 'Base64')

    Expected Token

     96yfUt3jgAIYx0o7i3tjprnBpotNO3Md/yv+eToJ8qo=

    Expected Token (URL Encoded for GET)

     96yfUt3jgAIYx0o7i3tjprnBpotNO3Md%2Fyv%2BeToJ8qo%3D
  • Error Codes

    Please refer to HTTP response headers for correct error codes and messages as IIS may reformat or replace JSON responses with standard error templates.

About

A basic introduction to the TASS APIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 28.9%
  • PowerShell 24.2%
  • HTML 13.3%
  • C# 12.3%
  • PHP 12.1%
  • ColdFusion 9.2%