Hola!
Las últimas veces que he agregado algunas capacidades de Twitter en alguna app, he utilizado el excelente TweetSharp de Daniel Crenna. Hoy al momento de intentar agregar el paquete NuGet a una app Universal de Windows 10, me he dado cuenta de que la misma no está soportada para UWP.
Llega el momento de evaluar algunas apps, y después de un rato decido quedarme con TweetInvi. Personalmente me ha gustado por lo simple de la implementación y la utilización.
Una vez agregado el paquete nuestra Windows Universal App, debemos definir las credenciales que utilizaremos. Para esto debemos registrar nuestra app en el portal de desarrolladores de Twitter y apuntar la siguiente información
- consumer_key
- consumer_secret
- access_Token
- access_Token_Secret
Importante: OAuth es un mundo interesante, el FAQ del site de desarrollo de Twitter explica muy bien como utilizarlo.
Una buena práctica es registrar las credenciales OAuth cuando se inicia nuestra app.
Y ahora solo nos queda lo más fácil: enviar un tweet. Esto se consigue con una sola línea de código
Tweet.PublishTweet(“Hello Bruno!”);
TweetInvi posee además opciones para enviar tweets con archivos adjuntos (imágenes o videos), para hacer un reply o marcar un tweet como favorito, y otras opciones más.
Saludos @ Madrid
-El Bruno
References
Hi man!
I have a problem. I wish that you help me, please. When i debug the project, i have an error. I attached the capture. Thank you in advanced.
LikeLike
Hi man!
I have a problem. I wish that you help me, please. When i debug the project, i have an error. I attached the capture. Thank you in advanced.
LikeLike
Dear, I did the sample. The problem was with the TweetIvinAPI, had the 0.9.10.2 version, then, downloaded the 0.9.10.0 version and the problem was solved.
Now, i have a questions. How can login with any user from app and get his name? Thanks in advanced.
LikeLike
Cool ! I didn’t even know that the latest version has a bug
Have you reported? you’ll help other users … 😀
I don’t get your question about using any user / pwd, I’m assuming you want to post in their behalf, and I don’t think that’s possible unless they request a developer key / secret / etc.
Regards
LikeLike