Skip to content

Instantly share code, notes, and snippets.

View mxamin's full-sized avatar

Amin Solhizadeh mxamin

View GitHub Profile

TCI Migration (Khorasan Razavi)

We want to move data of following tables from one server (A: Khorasan Razavi) to another server (B: TCI).

User tables:

  • users
  • user_attrs
  • normal_users

Group table; we only need this table for group mapping:

  • groups

Introduction

The following document describes how we can communicate with IBSng API through JSONRPC.

Note that IBSng is capable of handling requests in XML format as well, which in this case the IBSng XMLRPC server is responsible of processing/answering the requests but it is not the purpose of this document

All the samples of this document are implemented with curl command to make it independent of any programming languages.

Each operation in IBSng can be done by calling its appropriate method. The methods are categorized in different sections called handler. All the handlers/methods are described in here. So if we want to refer to a specific method it has the following form: <handler_name>.<method_name>.

For example, if you decide to send the Recharge Users request, you must find its handler and of course its method. In this case, the method is rechargeUsers and its handler is user. So in your reques

TCI Migration (Tabriz)

We want to move data of following tables from one server (A: Tabriz) to another server (B: TCI).

User tables:

  • users
  • user_attrs
  • normal_users

Group tables:

  • groups
@mxamin
mxamin / ibsng_update_custom_field.md
Created August 15, 2018 05:56
IBSng - Update User's Custom Field Value

IBSng - Update User's Custom Field Value

Suppose we already created a custom field named company for users, now we want to update this attribute for user with user_id 15 with parspooyesh value. In this scenario we have already authenticated with IBSng:

  • client IP address: 192.168.1.101
  • IBSng WS server and port: 192.168.1.104:1237
  • auth_name: system
  • auth_session: w6ig5hwv1ohv
$ curl -H "Content-Type: application/json" \
 -H "Accept: application/json" \

Introduction

The following document describes how we can communicate with IBSng API through JSONRPC.

Note that IBSng is capable of handling requests in XML format as well, which in this case the IBSng XMLRPC server is responsible of processing/answering the requests but it is not the purpose of this document

All the samples of this document are implemented with curl command to make it independent of any programming languages.

Each operation in IBSng can be done by calling its appropriate method. The methods are categorized in different sections called handler. All the handlers/methods are described in here. So if we want to refer to an specific method it has following form: <handler_name>.<method_name>.