[solved] I need help whit the project "build a random quote machine"


#1

Hi, my name is Gonzalo. i am learning english, my english is poor, sorry.
i need help with API´s Twitter. because i don{t find the documentation about that.
but i find info about create button of twitter for share the page, no for share only the text.

thanks so much for help me.


#2

First off, no need to apologize for your English. I’m sure it’s much better than my … errr … whatever it is you speak. Just be patient with us.

Yes, APIs are confusing enough to begin with and every one is different and they are often poorly documented.

So I ignored Twitter’s API and did it an easier way:

window.open("https://twitter.com/intent/tweet?text=" + text);

#3

One method is explained here - https://dev.twitter.com/web/tweet-button


#4

This page (https://dev.twitter.com/web/intents) explains in detail how to use Twitter’s Web Intents.


#5

Thank you so much for your help. I will try it


#6

No problem, let us know if you need any more help with web intents :slight_smile:


#7

thank you so much for your help, i will see the info.