Initializing the Gravatar Service Object

To initialize the service the email address associated with the Gravatar account and the password for the account are needed:

using Gravatar.NET;
using Gravatar.NET.Data;

        class Program
	{
		static string m_Email = ""; //set Gravatar account ID
		static string m_Password = ""; //set Gravatar account password
              
                static void Main(string[] args)
		{
                       var service = new GravatarService(m_Email, m_Password);
                        .
                        .
                        .
                }
         }

Last edited Jul 11, 2010 at 12:18 PM by yoavniran, version 3

Comments

No comments yet.