Added api for client side using urlib2