Jlucben
France
Asked
— Edited
Hi
I want in my plugin to get the Media Save Folder Path which is a parameter of Camera Control and to the twitter account name configured in ARC
Do you have ideas ?
Thanks
Get project control configuration properties:
Twitter Integration:
If your objective is to tweet you can use the the EZ-Script executer: https://synthiam.com/Community/Tutorials/146/21
and send a Tweet command.
ez-script help:
My objective fot twitter inegration is to be able to send and receive private messages
@JLucben,
The existent ez-robot twitter integration does not support direct messages, only DJ knows the ARC priorities.
you can use tweetmoasharp (tweetsharpfork) a .net wrapper: https://github.com/Yortw/tweetmoasharp
you will need to create a twitter application to obtain an Oath consumer key and secret. https://developer.twitter.com/en/docs/basics/authentication/overview/application-permission-model
https://developer.twitter.com/en/docs/basics/authentication/overview/oauth
then something like this:
Don't forget the recipient's twitter account must follow your twitter account.
The ARC application includes Twitterize, which should support private messaging. Add the DLL to your project as reference, and be sure to set not to copy as you did with ARC.exe and ezb.dll.
@JLucben,
Another reason to create your twitter application:
EDIT: I didn't see DJ's post
@DJ
For future references, do you allow/recommend using the EZ-Robot application/User tokens ?
Or create a twitter applications and user token ?
That’s a good question... I’m guessing it’s not terrible, as it’s the user’s account anyway. So I think it’s probably easiest to use the ezrobot tokens.
@JLucben,
My initial advise is to create a custom application and the user tokens, although i knew it was possible to obtain and reuse the EZ-Robot tokens.
I didn't do it before DJ's approval.
So the code below is the short and effective answer:
although Twitterizer's API allows read direct messages, ez-robot application is not authorized to read the direct messages.
happy code!
My draft plugin is using user token with framemork tweetinvi , its working fine but it will be better just as cleaner integration to reuse the EZ-Robot tokens but they don't allow to day to access direct messages.
One limitation of tweetinvi to day is that you cannot send direct messages with file attachments. Do you know other one with this feature
Jean-Luc
@Jlucben,
coretweet: https://coretweet.github.io/
wiki: https://github.com/CoreTweet/CoreTweet/wiki/Using-REST-APIs
check the last example.