Skip to content

Commit

Permalink
read snapshots with private memo data
Browse files Browse the repository at this point in the history
  • Loading branch information
wenewzhang committed May 24, 2019
1 parent 3160a8e commit 4bfdeed
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions lib/mixin_bot/api/snapshot.rb
Expand Up @@ -8,14 +8,19 @@ def read_snapshots(options)
asset = options['asset']
order = options['order']

path = 'network/snapshots'
payload = {
limit: limit,
offset: offset,
asset: asset,
order: order
}
client.get(path, params: payload)
# path = 'network/snapshots'

reqForAuthToken = "/network/snapshots"
reqForAuthToken += "?limit=" + limit
reqForAuthToken += "&offset=" + offset


reqForAuthToken += "&asset=" + asset
reqForAuthToken += "&order=" + order
access_token = self.access_token('GET', reqForAuthToken, '')
authorization = format('Bearer %s', access_token)
client.get(reqForAuthToken, headers: { 'Authorization': authorization })
# client.get(path, params: payload)
end

def read_snapshot(snapshot_id)
Expand Down

0 comments on commit 4bfdeed

Please sign in to comment.