how are you adding twitter to themes and templates now. I have been looking at it but it looks like you have to include secret keys and other things. Is this stuff safe to upload with a template? How is it done with the new API?
Create the widget/plugin/script as you normally would (using the new API) – just set the keys as variables that the purchaser must fill in.
I would not distribute the theme with your personal keys! But it is safe (with read only permissions) to use them on the demo.
The only way I have been able to get it work on the html site is by turning all the pages into php files and using php to display things. This makes it a little harder to preview the pages because you have to have a server set up. Is there an easier way? So I will be uploading a template soon but they will all be php files because of the php used to display the twitter feed.
With PHP you can Fetch and manipulate the tweets in PHP then echo out a json string. In your HTML, using JS and aJax to decode and parse the json string into your HTML template.
I’ve never tried Twitters new API (1.1) without PHP. According to their developers library page it’s possible. They link to these 3 libraries.