|
53 | 53 | "execution_count": null,
|
54 | 54 | "metadata": {},
|
55 | 55 | "outputs": [
|
56 |
| - { |
57 |
| - "data": { |
58 |
| - "text/html": [ |
59 |
| - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n" |
60 |
| - ], |
61 |
| - "text/plain": [] |
62 |
| - }, |
63 |
| - "metadata": {}, |
64 |
| - "output_type": "display_data" |
65 |
| - }, |
66 | 56 | {
|
67 | 57 | "data": {
|
68 | 58 | "text/markdown": [
|
69 | 59 | "[customers.get](https://docs.stripe.com/api/customers/list)(created: 'str', email: 'str', ending_before: 'str', expand: 'str', limit: 'str', starting_after: 'str', test_clock: 'str'): *List all customers*"
|
70 | 60 | ],
|
71 | 61 | "text/plain": [
|
72 |
| - "\u001b[1m[\u001b[0mcustomers.get\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://docs.stripe.com/api/customers/list\u001b[0m\u001b[4;94m)\u001b[0m\u001b[4;94m(\u001b[0m\u001b[4;94mcreated:\u001b[0m \u001b[32m'str'\u001b[0m, email: \u001b[32m'str'\u001b[0m, ending_before: \u001b[32m'str'\u001b[0m, expand: \u001b[32m'str'\u001b[0m, limit: \u001b[32m'str'\u001b[0m, starting_after: \u001b[32m'str'\u001b[0m, test_clock: \u001b[32m'str'\u001b[0m\u001b[1m)\u001b[0m: *List all customers*" |
| 62 | + "[customers.get](https://docs.stripe.com/api/customers/list)(created: 'str', email: 'str', ending_before: 'str', expand: 'str', limit: 'str', starting_after: 'str', test_clock: 'str'): *List all customers*" |
73 | 63 | ]
|
74 | 64 | },
|
75 | 65 | "execution_count": null,
|
|
86 | 76 | "execution_count": null,
|
87 | 77 | "metadata": {},
|
88 | 78 | "outputs": [
|
89 |
| - { |
90 |
| - "data": { |
91 |
| - "text/html": [ |
92 |
| - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n" |
93 |
| - ], |
94 |
| - "text/plain": [] |
95 |
| - }, |
96 |
| - "metadata": {}, |
97 |
| - "output_type": "display_data" |
98 |
| - }, |
99 | 79 | {
|
100 | 80 | "data": {
|
101 | 81 | "text/plain": [
|
102 |
| - "\n", |
103 |
| - "\u001b[1m(\u001b[0m\n", |
104 |
| - " \u001b[1;35mdict_keys\u001b[0m\u001b[1m(\u001b[0m\u001b[1m[\u001b[0m\u001b[32m'object'\u001b[0m, \u001b[32m'data'\u001b[0m, \u001b[32m'has_more'\u001b[0m, \u001b[32m'url'\u001b[0m\u001b[1m]\u001b[0m\u001b[1m)\u001b[0m,\n", |
105 |
| - " \u001b[1;35mdict_keys\u001b[0m\u001b[1m(\u001b[0m\u001b[1m[\u001b[0m\u001b[32m'id'\u001b[0m, \u001b[32m'object'\u001b[0m, \u001b[32m'address'\u001b[0m, \u001b[32m'balance'\u001b[0m, \u001b[32m'created'\u001b[0m, \u001b[32m'currency'\u001b[0m, \u001b[32m'default_source'\u001b[0m, \u001b[32m'delinquent'\u001b[0m, \u001b[32m'description'\u001b[0m, \u001b[32m'discount'\u001b[0m, \u001b[32m'email'\u001b[0m, \u001b[32m'invoice_prefix'\u001b[0m, \u001b[32m'invoice_settings'\u001b[0m, \u001b[32m'livemode'\u001b[0m, \u001b[32m'metadata'\u001b[0m, \u001b[32m'name'\u001b[0m, \u001b[32m'next_invoice_sequence'\u001b[0m, \u001b[32m'phone'\u001b[0m, \u001b[32m'preferred_locales'\u001b[0m, \u001b[32m'shipping'\u001b[0m, \u001b[32m'tax_exempt'\u001b[0m, \u001b[32m'test_clock'\u001b[0m\u001b[1m]\u001b[0m\u001b[1m)\u001b[0m\n", |
106 |
| - "\u001b[1m)\u001b[0m" |
| 82 | + "(dict_keys(['object', 'data', 'has_more', 'url']),\n", |
| 83 | + " dict_keys(['id', 'object', 'address', 'balance', 'created', 'currency', 'default_source', 'delinquent', 'description', 'discount', 'email', 'invoice_prefix', 'invoice_settings', 'livemode', 'metadata', 'name', 'next_invoice_sequence', 'phone', 'preferred_locales', 'shipping', 'tax_exempt', 'test_clock']))" |
107 | 84 | ]
|
108 | 85 | },
|
109 | 86 | "execution_count": null,
|
|
144 | 121 | "cell_type": "code",
|
145 | 122 | "execution_count": null,
|
146 | 123 | "metadata": {},
|
147 |
| - "outputs": [ |
148 |
| - { |
149 |
| - "name": "stdout", |
150 |
| - "output_type": "stream", |
151 |
| - "text": [ |
152 |
| - "Number of pages: 2\n" |
153 |
| - ] |
154 |
| - } |
155 |
| - ], |
| 124 | + "outputs": [], |
156 | 125 | "source": [
|
157 | 126 | "ps = L(itertools.islice(paged(sapi.customers.get, limit=2), 2))\n",
|
158 | 127 | "cs = L(c for p in ps for c in p.data)\n",
|
|
191 | 160 | "execution_count": null,
|
192 | 161 | "metadata": {},
|
193 | 162 | "outputs": [
|
194 |
| - { |
195 |
| - "data": { |
196 |
| - "text/html": [ |
197 |
| - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n" |
198 |
| - ], |
199 |
| - "text/plain": [] |
200 |
| - }, |
201 |
| - "metadata": {}, |
202 |
| - "output_type": "display_data" |
203 |
| - }, |
204 | 163 | {
|
205 | 164 | "data": {
|
206 | 165 | "text/plain": [
|
207 |
| - "\n", |
208 |
| - "\u001b[1m(\u001b[0m\n", |
209 |
| - " \u001b[1;36m588\u001b[0m,\n", |
210 |
| - " \u001b[1;35mdict_keys\u001b[0m\u001b[1m(\u001b[0m\u001b[1m[\u001b[0m\u001b[32m'id'\u001b[0m, \u001b[32m'object'\u001b[0m, \u001b[32m'address'\u001b[0m, \u001b[32m'balance'\u001b[0m, \u001b[32m'created'\u001b[0m, \u001b[32m'currency'\u001b[0m, \u001b[32m'default_source'\u001b[0m, \u001b[32m'delinquent'\u001b[0m, \u001b[32m'description'\u001b[0m, \u001b[32m'discount'\u001b[0m, \u001b[32m'email'\u001b[0m, \u001b[32m'invoice_prefix'\u001b[0m, \u001b[32m'invoice_settings'\u001b[0m, \u001b[32m'livemode'\u001b[0m, \u001b[32m'metadata'\u001b[0m, \u001b[32m'name'\u001b[0m, \u001b[32m'next_invoice_sequence'\u001b[0m, \u001b[32m'phone'\u001b[0m, \u001b[32m'preferred_locales'\u001b[0m, \u001b[32m'shipping'\u001b[0m, \u001b[32m'tax_exempt'\u001b[0m, \u001b[32m'test_clock'\u001b[0m\u001b[1m]\u001b[0m\u001b[1m)\u001b[0m\n", |
211 |
| - "\u001b[1m)\u001b[0m" |
| 166 | + "(853,\n", |
| 167 | + " dict_keys(['id', 'object', 'address', 'balance', 'created', 'currency', 'default_source', 'delinquent', 'description', 'discount', 'email', 'invoice_prefix', 'invoice_settings', 'livemode', 'metadata', 'name', 'next_invoice_sequence', 'phone', 'preferred_locales', 'shipping', 'tax_exempt', 'test_clock']))" |
212 | 168 | ]
|
213 | 169 | },
|
214 | 170 | "execution_count": null,
|
|
0 commit comments