0:00:01.220,0:00:06.210 Hi this is Tom with Coherent Logic and today we're going to take a look at the 0:00:06.210,0:00:10.769 CMR API specifically for the US Treasury Direct.gov 0:00:10.769,0:00:16.650 web services so let's jump right in and make a call to the US TreasuryDirect.gov 0:00:16.650,0:00:24.150 website. Here's what this call looks like: in this case we have our URL at the 0:00:24.150,0:00:31.410 top that would be here and then I've written out how this breaks down in code. 0:00:31.410,0:00:37.700 So in the URL we have ta_WS. and that equates to a .taWS method; 0:00:37.700,0:00:43.170 securities has the 'securities' method; auction has at that 'auction' method. All 0:00:43.170,0:00:49.230 parameters are set via 'with' methods so in this case we have withTypeAsTIPS 0:00:49.230,0:00:54.239 and then we have withDays(720) and then finally we execute doGetAsSecuritiesDataSet. 0:00:54.239,0:01:01.469 So the equivalent code looks like this: we import two 0:01:01.469,0:01:08.670 classes: first of all one is a package object and the second is CMR; we 0:01:08.670,0:01:14.040 instantiate CMR and then we use cmr to build up the query as we've discussed a 0:01:14.040,0:01:18.689 moment ago and then finally we will show the DataSet so let's go ahead and 0:01:18.689,0:01:21.290 execute this. 0:01:28.040,0:01:32.810 And there you have it. So that concludes this example for working with the US 0:01:32.810,0:01:38.540 TreasuryDirect.gov web services. If you have any thoughts or suggestions or 0:01:38.540,0:01:42.590 questions please leave them in a comment section and I appreciate a thumbs up if 0:01:42.590,0:01:47.500 you enjoyed this video -- thanks again.