/**
  * Sets the current library configuration.
  *
  * Should be called before before contacting the API.
  *
  * @param kyConfig $config Configuration.
  * @return kyConfig
  */
 public static function set(kyConfig $config)
 {
     self::$current_config = $config;
     return self::$current_config;
 }