Re: [twitter-dev] Sharing a link on Twitter via an email

2011-02-23 Thread Pete Clark
In message , Lukas Wittenbraker  writes
>I don't think email clients would work well in PHP.
>
>I could be wrong, but I don't believe that would work seeing as my
>email is written in HTML.

Just a suggestion, since most emails from a system are created in PHP,
then emailed.  

You certainly couldn't put the code I suggested "in the email", but you
may have been able to put the code in a section which creates the email
- it sounded like that's what you were doing, from the information that
you were adding in to the email.

-- 
Pete Clark

Local sites for Local People in Spain
http://localFaces.net

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Sharing a link on Twitter via an email

2011-02-23 Thread Pete Clark
In message , Lukas Wittenbraker  writes
>The links within the email pull customer specific information from our
>database. (customer name, ID, etc) for tracking purposes on the back
>end.  This is the reason I can't pre shorten the links.  I may be up a
>creek and not able to solve this issue.  I was hoping there was some
>sort of script that could shorten the link, or divert it to a url that
>automatically shortens and posts to twitter.

Is this any use to you?
$tinyurl = 
file_get_contents("http://tinyurl.com/api-create.php?url=".$url);",


-- 
Pete Clark

Local sites for Local People in Spain
http://localFaces.net

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk