Implementation of API Request using singleton  pattern