Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

String runImportCSV(String import_type, String csv_data)

Creates and executes a an ImportRequest, given a string of an import_type (Reference: XXX Legacy Fishbowl CSV Import Reference ) and a CSV string. The method returns a JSON object as a string.

...

Executes a legacy API call given a request_type, see reference (XXXXX(Reference: Legacy Fishbowl XML/JSON API Call Types ), and a JSON Payload. The internal Fishbowl Legacy API is XML, and Fishbowl will convert our JSON to XML, and on a completed request will convert XML to JSON.

Take note that there are some bugs with the XML<>JSON conversion, namely if an property is intended to be a list but has a single record/object, it will serialize as an object, and not a list. Reference: TBD.

Examples

TBD

Code Block
var request = {};
var request_json = JSON.stringify(request);
var result_json = fb_client.runApiJSON("XXX",request_json);
var result = JSON.parse(result_json);
console.log(result);
> TBD

...