Skip to content

Commit fd71281

Browse files
committed
updated to 0.1.3
1 parent f9c6480 commit fd71281

File tree

3 files changed

+44
-6
lines changed

3 files changed

+44
-6
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# BlockIo
2+
3+
This Ruby Gem is the official reference client for the Block.io payments API. To use this, you will need the Dogecoin, Bitcoin, or Litecoin API key(s) from <a href="https://block.io" target="_blank">Block.io</a>. Go ahead, sign up :)
4+
5+
## Installation
6+
7+
Install the package using pip:
8+
9+
$ sudo pip install block_io
10+
11+
Or install using easy_install:
12+
13+
$ sudo easy_install block_io
14+
15+
## Usage
16+
17+
It's super easy to get started. In your Python shell, do:
18+
19+
from block_io import BlockIo
20+
21+
block_io = BlockIo('API KEY')
22+
23+
# print the account balance
24+
print block_io.get_balance()
25+
26+
# print all addresses on this account
27+
print block_io.get_my_addresses()
28+
29+
# print the response of a withdrawal request
30+
print block_io.withdraw(pin='SECRET PIN', from_user_ids='1,2', to_user_id='0', amount='50.0')
31+
32+
For more information, see https://block.io/api. This Python client provides a mapping for all methods listed on the Block.io API site.
33+
34+
## Contributing
35+
36+
1. Fork it ( https://github.com/[my-github-username]/block_io/fork )
37+
2. Create your feature branch (`git checkout -b my-new-feature`)
38+
3. Commit your changes (`git commit -am 'Add some feature'`)
39+
4. Push to the branch (`git push origin my-new-feature`)
40+
5. Create a new Pull Request

block_io/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import requests
2-
import json
32

4-
VERSION="0.1"
3+
VERSION="0.1.3"
54

65
class BlockIo(object):
76

8-
def __init__(self, options = {}):
7+
def __init__(self, api_key):
98
# initiate the object
10-
self.api_key = options['api_key']
9+
self.api_key = api_key
1110
self.base_url = 'https://block.io/api/v1/API_CALL/'
1211

1312
def __getattr__(self, attr, *args, **kwargs):

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

33
setup(name='block_io',
4-
version='0.1',
4+
version='0.1.3',
55
description='The easiest way to create a Dogecoin, Bitcoin, or Litecoin wallet. Sign up at Block.io for your API key.',
66
url='http://github.com/blockio/blockio-python',
77
author='Atif Nazir',
@@ -10,7 +10,6 @@
1010
packages=['block_io'],
1111
install_requires=[
1212
'requests',
13-
'json',
1413
],
1514
zip_safe=False)
1615

0 commit comments

Comments
 (0)