For the complete documentation index, see llms.txt. This page is also available as Markdown.

List

Mendapatkan daftar alamat pengiriman pengguna

Nama function yang digunakan adalah

GetAddressList(params : { page: number, perPage: number })

Cara Menggunakannya adalah dengan memasukkan parameter yang dibutuhkan kedalam function seperti ini

import { InaLib } from "ina-digital-sdk";
const inaLib = new InaLib({ mode: string, secret_key: string });
inaLib
  .GetAddressList({ page: 1, perPage: 25 })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });

Contoh

Berikut ini merupakan contoh dalam penggunaan

import { InaLib } from "ina-digital-sdk";
const inaLib = new InaLib({ mode: 'prod', secret_key: '{your_secret_key}' })
inaLib.GetAddressList({page: 1, perPage: 25})
		.then(function (response) {
			console.log(response);
		})
		.catch(function (error) {
			console.log(error);
		});

Maka output yang akan keluar adalah

Last updated