Fixed bugs by testing Network Api

In Session, ApiKey and ApiSecret are exposed to publics gets as in the
Java version. Issue #7