VikingCloud Portal API - WRM API code examples

Index

GitHub repo: api-wrm-examples

This GitHub repo includes basic code examples for the VikingCloud Portal WRM API.

Introduction

This repo contains some basic examples of different languages implementing the VikingCloud Portal WRM API. Use of this API does require a VikingCloud Portal user account that is enabled for API. Contact WRMSupport@vikingcloud.com if you are a VikingCloud WRM customer and need to request access.

Perl

Merchant list

The wrmapi-merchant_list-csv.pl file shows how to implement the Token API for authentication, and several methods of the WRM API, to create a CSV file containing information about all WRM Merchants, including the unique Merchant ID necessary for use with the WRM API.

Python

Merchant list

The wrmapi-merchant_list-csv.py file shows how to implement the Token API for authentication, and several methods of the WRM API, to create a CSV file containing information about all WRM Merchants, including the unique Merchant ID necessary for use with the WRM API.

Credentials

You will need valid credentials for the VikingCloud portal that are enabled for API access. The example scripts store the credentials in a .json file: creds.json. This file must contain properly formatted JSON file that matches the requirements for the VikingCloud Portal Token API getToken method.

Example creds.json

Copy
Copied
{
"username": "apiuser",
"password": "secret"
}