lib/Segment.php
public static function init($secret, $options = array()) {
    self::assert($secret, "Segment::init() requires secret");
    self::$client = new Segment_Client($secret, $options);
  }
public static function init($secret, $options = array()) {
    self::assert($secret, "Segment::init() requires secret");
    self::$client = new Segment_Client($secret, $options);
  }
public static function init ( $ secret , $ options = array ( ) ) { self :: assert ( $ secret , "Segment::init() requires secret" ) ; self :: $ client = new Segment_Client ( $ secret , $ options ) ; }
Initializes the default client to use. Uses the libcurl consumer by default.
@param  string $secret   your project's secret key
@param  array  $options  passed straight to the client
Initializes the default client to use . Uses the libcurl consumer by default .