Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Apps feed Google API

I am uploading data to Google apps programmatically. I am using the following code

MailItemEntry[] entries = new MailItemEntry[1];
entries[0] = new MailItemEntry();
entries[0].BatchData = new Google.GData.Client.GDataBatchEntryData();
MailItemFeed feed = mailItemService.Batch(domain, UserName, entries);

Is there any way to find out how much data(in MB or GB) has been uploaded to google apps. Thanks in advance.

like image 609
Sanchaita Chakraborty Avatar asked Jul 19 '11 06:07

Sanchaita Chakraborty


People also ask

What is feed in API?

The Sell Feed API lets sellers upload and download feed files and reports, and create schedules. Both upload and download feed files are processed asynchronously by eBay. The status of all upload and download tasks are tracked with a unique 'task ID'.

What is Google API used for?

Google Cloud APIs are programmatic interfaces to Google Cloud Platform services. They are a key part of Google Cloud Platform, allowing you to easily add the power of everything from computing to networking to storage to machine-learning-based data analysis to your applications.

Is there an API for Google ads?

The Google Ads API lets developers create and use applications that interact directly with their account details on the Google Ads server. The API helps advertisers efficiently manage large Google Ads accounts and campaigns.


1 Answers

What you can do it utilize the BatchAsync of the mailItemService and hook up to the AsyncOperationProgress event. This will tell you, as a percent, how much of the data has been sent. Just be aware that BatchAsync is a non blocking call, so your application will need to change as a result.

If you have access to the length of the data that you are sending, you can calculate how much has gone up with each progress changed event.

See Google-docs http://google-gdata.googlecode.com/svn-history/r902/docs/folder4/AllMembers_T_Google_GData_Apps_Migration_MailItemService.htm

MSDN http://msdn.microsoft.com/en-us/library/system.componentmodel.progresschangedeventargs.aspx

Hope that helps

like image 95
Brian Dishaw Avatar answered Oct 17 '22 12:10

Brian Dishaw