To run examples main methods execute this from root project folder:
gradlew :example:execute -PmainClass="HelloWorld" -DTWINGLY_SEARCH_KEY=your_api_key // to run HelloWorld example
gradlew :example:execute -PmainClass="SearchPostsStream" -DTWINGLY_SEARCH_KEY=your_api_key // to run SearchPostsStream example