/**
 * Gets the value of the global variable with the given key. Returns an API error (DOES_NOT_EXIST) if no value was previously set.
*/
Gets the value of the global variable with the given key. Returns an API error (DOES_NOT_EXIST) if no value was previously set.
Gets the value of the global variable with the given key . Returns an API error ( DOES_NOT_EXIST ) if no value was previously set .
pub fn global_var(service: &ZapService, varkey: String) -> Result<Value, ZapApiError> {
    let mut params = HashMap::new();
    params.insert("varKey".to_string(), varkey);
    super::call(service, "script", "view", "globalVar", params)
}
pub fn global_var ( service : & ZapService , varkey : String ) -> Result < Value , ZapApiError > { let mut params = HashMap :: new ( ) ; params . insert ( " " . to_string ( ) , varkey ) ; super :: call ( service , " " , " " , " " , params ) }
Gets the value of the global variable with the given key.
Gets the value of the global variable with the given key .
service
&ZapService
varkey
String