Exemplo n.º 1
0
        protected dynamic ExecuteRequest(string urlPath, AsanaApi.Models.OptionalFields[] returnedFields, string fieldNamesToAppendToOptionalFieldNames)
        {
            HttpWebRequest   httpRequest = CreateClient(AppendOptionalFields(urlPath, returnedFields, fieldNamesToAppendToOptionalFieldNames));
            AsanaApiResponse response    = new AsanaApiResponse().Execute(httpRequest).CheckForError();

            return(response.GetContentAsDynamicObject(false));
        }
Exemplo n.º 2
0
        protected dynamic ExecuteRequest( string urlPath, AsanaApi.Models.OptionalFields[] returnedFields, string fieldNamesToAppendToOptionalFieldNames )
        {
            HttpWebRequest httpRequest = CreateClient( AppendOptionalFields( urlPath, returnedFields, fieldNamesToAppendToOptionalFieldNames ) );
            AsanaApiResponse response = new AsanaApiResponse().Execute( httpRequest ).CheckForError();

            return response.GetContentAsDynamicObject( false );
        }