|
1 |
| -================ |
2 |
| -Gravatar XML-RPC |
3 |
| -================ |
| 1 | +=========== |
| 2 | +libgravatar |
| 3 | +=========== |
4 | 4 |
|
5 |
| -A library that provides a Python 3 interface to the Gravatar XML-RPC API. |
6 |
| -API Details: http://en.gravatar.com/site/implement/xmlrpc |
7 |
| - |
8 |
| -Author |
9 |
| ------- |
10 |
| - |
11 |
| -Pablo Seminario < [email protected]> |
| 5 | +A library that provides a Python 3 interface for the Gravatar API. |
| 6 | +API details: https://en.gravatar.com/site/implement/ |
12 | 7 |
|
13 | 8 | Usage
|
14 | 9 | -----
|
15 | 10 |
|
16 |
| -Getting user profile image |
17 |
| -:: |
| 11 | +Getting user profile image:: |
18 | 12 |
|
19 |
| - from gravatar import Gravatar |
| 13 | + from libgravatar import Gravatar |
20 | 14 |
|
21 | 15 | g.get_image()
|
22 | 16 | 'http://www.gravatar.com/avatar/0bc83cb571cd1c50ba6f3e8a78ef1346.jpg?size=80'
|
23 | 17 |
|
24 |
| -If you have an account at Wordpress.com you can use your API Key |
25 |
| -:: |
| 18 | +If you have an account at Wordpress.com you can use your API Key:: |
26 | 19 |
|
27 |
| - from gravatar import GravatarXMLRPC |
| 20 | + from libgravatar import GravatarXMLRPC |
28 | 21 | g = GravatarXMLRPC('user@domain', apikey='1234')
|
29 | 22 | g.test() # test the API
|
30 | 23 |
|
31 |
| -Or you can use your Gravatar.com password |
32 |
| -:: |
| 24 | +Or you can use your Gravatar.com password:: |
33 | 25 |
|
34 |
| - from gravatar import GravatarXMLRPC |
| 26 | + from libgravatar import GravatarXMLRPC |
35 | 27 | g = GravatarXMLRPC('user@domain', password='1234')
|
36 | 28 | g.test() # test the API
|
37 | 29 |
|
38 |
| -License |
39 |
| -------- |
40 |
| - |
41 |
| -This program is free software: you can redistribute it and/or modify |
42 |
| -it under the terms of the GNU General Public License as published by |
43 |
| -the Free Software Foundation, either version 3 of the License, or |
44 |
| -(at your option) any later version. |
45 |
| - |
46 |
| -This program is distributed in the hope that it will be useful, |
47 |
| -but WITHOUT ANY WARRANTY; without even the implied warranty of |
48 |
| -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
49 |
| -GNU General Public License for more details. |
50 |
| - |
51 |
| -You should have received a copy of the GNU General Public License |
52 |
| -along with this program. If not, see <http://www.gnu.org/licenses/>. |
0 commit comments