using httpclient to connect to PQ API