<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi James,</p>
<p>The DataCiteDOI Bazaar plugin contains an Event plugin that it used to calls DataCite to coin (mint) a DOI.&nbsp; This sounds like it would be doing a similar thing to posting some (I think) JSON to generate a tweet:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbazaar.eprints.org%2F1100%2F&amp;data=01%7C01%7C%7C55ba6c82373d428744b108d79a612eff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8TZoBkNN2wjMlXuOND1KzfgNDiKw0qPO0pYfUTiDNPc%3D&amp;reserved=0" originalsrc="http://bazaar.eprints.org/1100/" shash="zJtYZz3fpMlClBFMpHBA3jbbu28mLatjPEGjGRftXgkPcXyQ76liTV0BeePHDp&#43;3oeRGspLBAmmrLZZmnZ76jNULTi/yO4XLAe3UHkSBJQzPqyj0HViWo&#43;8SmohZJbontZjO8aw9Jo&#43;&#43;VSSYyJp5pWA9BclOLeoMCgIgmdrZeyk=">http://bazaar.eprints.org/1100/</a></p>
<p>Regards</p>
<p>David Newman<br>
</p>
<div class="moz-cite-prefix">On 16/01/2020 08:39, Adam Field via Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:EMEW3|2e15b50d7bf9363d02f0578fcac059d1w0F8e514eprints-tech-bounces|ecs.soton.ac.uk|4f486f73-53be-4ce7-8d0e-ea89048c7947@email.android.com">
<div dir="auto">Is it in github?&nbsp; Can you link me to the code?</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 16 Jan 2020 08:31, James Kerwin via Eprints-tech <a class="moz-txt-link-rfc2396E" href="mailto:eprints-tech@ecs.soton.ac.uk">
&lt;eprints-tech@ecs.soton.ac.uk&gt;</a> wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi All,<br>
<div><br>
</div>
<div>I rewrote my twitter bot using a different Perl module as it wasn't working how I wanted it to (failed with &quot;special characters&quot;).</div>
<div><br>
</div>
<div>It worked when I rewrote it as a .pl in cfg.d. I then decided to rewrite it as an Event plugin as this seems like the &quot;proper&quot; way to do things. Unfortunately, it doesn't work.</div>
<div><br>
</div>
<div>I can see that it gets added to the indexer and it subsequently fails.</div>
<div><br>
</div>
<div>One possible reason it fails is that I don't have any user roles set up for it. For an event plugin, do I need user roles to be set up?</div>
<div><br>
</div>
<div>I've tried to look at documentation for other plugins, but they also involve a &quot;Screen&quot; plugin which is what I assume the user roles are for. My plugin just uses the status change trigger to compile and send a tweet.</div>
<div><br>
</div>
<div>Any pointers greatly appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>James</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7C%7C55ba6c82373d428744b108d79a612eff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=KSvcJF0gxg8ud5jlmnY56r5HCysEx%2FqnjJevxu2rDcw%3D&amp;reserved=0" originalsrc="http://www.eprints.org/tech.php/" shash="vFfKS/Mgw3IlgpMXKXb613yAlec57vRifOBZVFdfRmBwIuQdffFaVHGurmkDOR2GQUE3MhqvD0Wzi53PaILTHSQuOu17Mr4V5zl/nHrUl4Y1x3bEbJd4Apixz/RlVQC8ihEzGYBBpt0ktkDYVjF&#43;bagYtA/aHLMu27iRHIm3JjU=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7C55ba6c82373d428744b108d79a612eff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=yNWkTfKUug1MADfn5zFiHTL7E3Z84ox%2BDMzcfOlpkNs%3D&amp;reserved=0" originalsrc="http://wiki.eprints.org/" shash="wC0NB4ba4pTnn1a1Lql6uESkz3yMYRMSPUqcNWE0fpUDajHi/q53cv08rmHnNGZQKK4xv1v48eIqLUknZk5wXV/Q2rOzs2o7XLhMDouzr3ivR0fUlM8Q8fZr5CT4jN/Suiy7L5YHh3xfWJ2mAn0xW77BE1nNdTCfc2KFgWkoR5Q=">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7C%7C55ba6c82373d428744b108d79a612eff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=BybP4zlvdLsKhzdVo0irfPlaKfygd4nXJ30NVaCZy8U%3D&amp;reserved=0" originalsrc="http://forum.eprints.org/" shash="j46ehwMdTahYTiaEWtJbHLksJlr2jl1a6rPULxq2h/8cYK5Ggf5rrWIG5V8SxlrcA0J&#43;&#43;FCUZx4ObuGRuC&#43;iwznFdYPZAlzkxQ17kAW5MrjdYsFpQuB7an3nPt6B4T9DJLR9tuwVdmAVHArTdKW/QK26q0LBQFNGrqUt3S3B1t0=">http://forum.eprints.org/</a>
</pre>
</blockquote>
</body>
</html>