The experience with twurl has been pretty inconsistent, so I may have overstated before. Some things do work though. I authorized with the same account that owns the premium search app.
$ twurl authorize --consumer-key [key from apps.twitter.com] --consumer-secret [secret from apps.twitter.com]
Go to https://api.twitter.com/oauth/authorize?oauth_consumer_key=.....&oauth_version=1.0 and paste in the supplied PIN
[go to url and paste pin]
Authorization successful
This fails
$ twurl /1.1/tweets/search/30day/dev.json?maxResults=10&query=from:andypiper
[1] 67656
Ryans-MacBook-Air:~ ryan$ {"error":{"message":"There were errors processing your request: Missing required parameter:'query', Missing required parameter:'query'","sent":"2018-01-11T05:01:29+00:00","transactionId":"00762a1a0018b3b1"}}
This works
$ twurl /1.1/tweets/search/30day/dev.json?query=from:andypiper&maxResults=10
{"results":[
{"created_at":"Thu Jan 11 04:46:10 +0000 2018","id":951314265822126081,"id_str":"951314265822126081"},
{"created_at":"Thu Jan 11 04:45:39 +0000 2018","id":951314138256592896,"id_str":"951314138256592896"},
.....
],
"next":"eyJhdXRoZW50aWNpdHkiOiI5YTYwNjhlOGE0YmMyMjlmOGM0YjU0MGZhOTNkZWJmMWMyOWQwYzQ2NzM3OWYxODBhMzhmZmE1YTM2YmUxNWM0IiwiZnJvbURhdGUiOiIyMDE3MTIxMjAwMDAiLCJ0b0RhdGUiOiIyMDE4MDExMTA1MTEiLCJuZXh0IjoiMjAxODAxMTEwMjMwNTEtOTUxMjgwMjEyMTM3OTYzNTE5LTAifQ==",
"requestParameters":{"maxResults":10,"fromDate":"201712120000","toDate":"201801110511"}
}
Sounds like there are more consistent options with other tools, but thought I’d share anyway.