Client-side implementation of Pigro's APIs