RESTMessageV2 - setBasicAuth(String userName, String userPass)

Sets basic authentication headers for the REST message.

Setting security values using this method overrides basic authentication values defined for the REST message record.

Table 1. Parameters
Name Type Description
userName String The username you want to use to authenticate the REST message.
userPass String The password for the specified user.
Table 2. Returns
Type Description
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.