//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> This function concatenates the api string into the url, /// and instantiates the parsers and serializers.</summary> //////////////////////////////////////////////////////////////////////////////////////////////////// private void InitApiUrlAndObjects() { url = string.Format(url, Constants.apiOAuth); //As the whole api uses the same parser and serializer, //these two are instanciated and fixed serializer = new FormUrlSerializer(); parser = new FormUrlParser(); }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> This function concatenates the api string into the url, /// and instantiates the parsers and serializers.</summary> //////////////////////////////////////////////////////////////////////////////////////////////////// private void InitApiUrlAndObjects() { url = string.Format(url, string.Format(Constants.apiAdvertising, sandboxString)); //As the whole api uses the same parser and serializer, //these two are instanciated and fixed serializer = new FormUrlSerializer(); parser = new XMLParser(); }