Page 1 of 1
google base feed
Posted: Mon Nov 07, 2011 4:38 pm
by jgabriel
urgent :
i have a problem when i look at googlebase class in able source code ,i found two or three methods like GetHeaderRow and Getfeeddata , my question is where is the implementaion of method BeginCreateUploadFeed() ? cause i changed the format so i used getheaderrow() , getfeeddata () , but i need to make uploading to the feed like method begincreateuploadfeed() in the another method
Re: google base feed
Posted: Tue Nov 08, 2011 7:32 am
by jmestep
The methods are in the FeedProvider and are called from the admin page for the Googlebase feed.
Code: Select all
feedProvider.BeginCreateFeed(options, new AsyncCallback(this.EndAsynFeedOperationCallBack), "");
feedOperationStatus.Messages.Add("Creating feed File.");
feedOperationStatus.StatusMessage = "Creating feed File.";
feedOperationStatus.Percent = 0;
ProgressBar1.ProgressText = "Creating feed File.";
ProgressBar1.Value = 0;
FeedCreationProgressPanel.Visible = true;
FeedInputPanel.Visible = false;
Timer1.Enabled = true;
Re: google base feed
Posted: Tue Nov 08, 2011 8:15 am
by jgabriel
thank u but i know this method
my question is what i want to do uploading ?
how to make upload feed ?
i used GetFeedData() method with GetHeaderRow() and change format
but there is no upload method to use beside this
can u help me plz
Re: google base feed
Posted: Tue Nov 22, 2011 6:21 am
by plugables
The upload method is in FeedProviderBase class from which the GoogleBaseFeed extends. Upload functionality was in the old google base feed. In the new feed upload is not needed. Instead google pulls the feed from your site automatically.
For uploading using FTP you may do something like this
Code: Select all
FtpClient ftpClient = new FtpClient();
ftpClient.RemoteHost = ftpHost;
ftpClient.UserName = ftpUserName;
ftpClient.Password = ftpPassword;
ftpClient.TransferType = FtpTransferType.BINARY;
ftpClient.PutFile(LocalFileName, RemoteFileName);