See function getThreadFromUrl() in file Repository\Thread.php
It return a thread, if found, but you could create a similar function to return just the thread_id using the same code.
See function getThreadFromUrl() in file Repository\Thread.php
It return a thread, if found, but you could create a similar function to return just the thread_id using the same code.