Loading...
 

Fautore API: osaAppPullCfg

Return configuration data specific to requesting application.

Overview

This page details the use of the osaAppPullCfg API call. This function is used by applications to pull OCE member specific configuration items defined in the AppVal section of the application registration message. Values defined as "Default" are returned should there be no data defined for the OCE member triggering the request from the calling application.

Message Structure

The OCE function data structure is constructed of encoded JSON passed within the "Adjunct":"Data" portion of the master OSA message being used to pass the data to the OCE.

Function: osaAppPullCfg

Full Messge Example
{ "msgType" : "oceOp", "Visibility" : "2", "Source" : { "Member" : "Bonnie", "Coterie" : "1", "AppKey" : "41T3007T8+HLKMQNOWQSUSH9A7-OI?!QCR56", "AppId" : "Test:jsontest" } "Adjunct" : { "Type" : "oce/func", "Desc" : "An example osaAppPullCfg call" "Data" : "{\n \"Func\" : \"osaAppPullCfg\"\n}\n", }, }
Function Specific Call Data
{ "Func" : "osaAppPullCfg" }

 

Returns:

The response returned is a 4 field JSON structure:

RespCount:

The number of API call responses being provided. This will always be "1" unless multiple API calls were sent at once.

MsgId:
An alpha numeric representing the message being returned. The string "REQPROC" (for "Request Processed") is the expected response for success.

MsgNum
An integer value representing the message being returned.

  • Positive numbers indicate success
  • Negative numbers indicate an error has occurred

The number "7" is the expected response for success.

Mesg:
When successful, an array of hashes with values defined as follows, otherwise the message tied to the received error.

Field
The application configuration field provided a value by the OCE member at configuration time.
Value
The application configuration value provided to the field by the OCE member at configuration time.
Member
The member to which the field and value apply ("Default" if not member specific)
AppKey
The application key for the application to which this value applies.

 

Example Return Value
{ "respCount" : 1, "MsgNum" : "7", "MsgId" : "REQPROC", "Mesg" : [ { "Field" : "Catalog", "Value" : "Spring", "AppKey" : "41T3007T8+HLKMQNOWQSUSH9A7-OI?!QCR56", "Member" : "Default" }, { "AppKey" : "41T3007T8+HLKMQNOWQSUSH9A7-OI?!QCR56", "Field" : "PersKey", "Value" : "ajhdfyuqw487qqweiaisfg6480403er", "Member" : "Default" } ] }
Seven steps to using the Internet in privacy as a respected Netizen.
  1. Perspective
  2. Search
  3. Email
  4. Social Security
  5. Have Presence
  6. Take Control
  7. Break The Ties

Shoutbox

Steve: Fautore 0.6.0.0 is now released and available to our registered Alpha participants!
Steve: Fautore 5.3.0 is now released and includes dynamically updated stats reporting!
Steve: Fautore 0.5.2.3 FILES.pm patch is up on the site. Thanks for the inputs. Keep it coming. We'll make Fautore a reality together.