subscriber

How to run 2 queries sequentially in a Android RxJava Observable?

二次信任 提交于 2019-11-30 01:43:31
问题 I want to run 2 asynchronous tasks, one followed by the other (sequentially). I have read something about ZIP or Flat, but I didn't understand it very well... My purpose is to load the data from a Local SQLite, and when it finishes, it calls the query to the server (remote). Can someone suggests me, a way to achieve that? This is the RxJava Observable skeleton that I am using (single task): // RxJava Observable Observable.OnSubscribe<Object> onSubscribe = subscriber -> { try { // Do the query

get youtube channel subscribers via youtube API

限于喜欢 提交于 2019-11-27 07:10:28
问题 I'm trying to use youtube api to get a list of subscribers to a channel i own then check a user's Email to find out if he's subscribed or not. Now I'm using this page to test my first step https://developers.google.com/youtube/v3/docs/subscriptions/list and inserting data as follows and all other fields are empty As you can see I get this error and the part label contains an error while the value is "snippet". how to solve this problem and if solved as I need is it available to get a list of