Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 6 of 6

Thread: Feature Request : Twitter Coupons

  1. #1
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default Feature Request : Twitter Coupons

    Would be cool if when a new coupon was created or a new discount added that that would be tweeted automatically.

  2. #2
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    sure, just send it off using their API. very simple. Not in the core at this time...due to not many requests for it =) but I can see how this could be a bit cool.
    AspDotNetStorefront
    Shopping Cart

  3. #3
    Dusty is offline Member
    Join Date
    Jun 2009
    Posts
    176

    Default Twittering Updates

    The Twitter API is really basic and effective. To accomplish what you're looking for all you'd have to do is add the following function and call it from the Coupon logic:

    HTML Code:
    public static void Twit(string StatusUpdate)
            {
                string URL = "http://twitter.com/statuses/update.xml?status={0}";
    
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(
                    string.Format(
                    URL, 
                    HttpUtility.UrlEncode(StatusUpdate))
                    );
    
                request.Method = "POST";
                
                //This should be your twitter user ID and password
                request.Credentials = new System.Net.NetworkCredential(UserName, Password);
    
                request.ContentType = "application/x-www-form-urlencoded";
                request.ServicePoint.Expect100Continue = true;
    
                //Called to fire the request
                request.GetResponse().GetResponseStream();
    
            }

  4. #4
    subhaikav is offline Junior Member
    Join Date
    Jul 2009
    Posts
    1

    Default

    The logic you provided is simple and effective. It is really useful.

  5. #5
    Keyword Geek is offline Junior Member
    Join Date
    Sep 2009
    Posts
    1

    Default

    Quote Originally Posted by subhaikav View Post
    The logic you provided is simple and effective. It is really useful.
    I totally agree. Automatically tweeted coupons codes and links would be awesome especially if you have a list of targeted followers.

  6. #6
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    Something similar for facebook would also be very cool, nice snippet!

    Thanks
    Version: ML 8.0.1.2 and No Source Code.