lib/zalo_api/oa.rb in zalo-api-0.1.0 vs lib/zalo_api/oa.rb in zalo-api-0.1.1
- old
+ new
@@ -1,31 +1,11 @@
require 'zalo_api/resource'
+require 'zalo_api/offical_account/information'
+require 'zalo_api/offical_account/message'
module ZaloAPI
# API for Offical Account
class OA < Resource
- # Get Offical Account profile
- def me
- @client.connection.get "#{base_url}/oa/getoa"
- end
-
- # Get a list of followers
- # @param [Integer] offset Start position in the list of people followers
- # @param [Integer] count Number of follower people want to take
- # @return [Hash] List user_id
- # {
- # "error": int,
- # "message": String,
- # "data": {
- # "total": int,
- # "followers": [
- # {
- # "user_id": String
- # },...
- # ]
- # }
- # }
- def followers(offset: 0, count: 5)
- @client.connection.get "#{base_url}/oa/getfollowers", { data: { offset: offset, count: count }.to_json }
- end
+ include ZaloAPI::OfficalAccount::Information
+ include ZaloAPI::OfficalAccount::Message
end
end