Exemple #1
0
        //

        public async Task CreateRecordMethodAsync(AirtableBase airtableBase)
        {
            Task <AirtableCreateUpdateReplaceRecordResponse> task = airtableBase.ReplaceRecord(tablename, fields, stringID, conversion);
            var response = await task;

            OutRecord = response.Record;


            if (response.AirtableApiError.ErrorMessage != null)
            {
                // Error reporting
                errorMessageString = response.AirtableApiError.DetailedErrorMessage2;
            }
            else
            {
                // Do something with the retrieved 'record'
                OutRecord = response.Record;
            }
        }
Exemple #2
0
 public async Task UpdateThingAsync(Thing thing)
 {
     await Airtable.ReplaceRecord(TABLE_NAME, thing.GetFields(), thing.ThingId);
 }