Package: dwollaswagger
The new Dwolla API V2 SDK, as generated bythis fork of
swagger-codegen.Version1.0.9Installationdwollaswaggeris available onPyPi, and therefore can
be installed automagically viapip.To install via pip:pip install dwollaswaggerTo add to ``requirements.txt`` and make this a permanent dependency of
your package:YourApp
SomeLibrary==1.2.3
dwollaswagger>=1.0.0pip install -r requirements.txtTo install directly from source:git clone https://github.com/Dwolla/dwolla-swagger-python && cd dwolla-swagger-python && python setup.py installOS X users may need to run ``setup.py`` as a privileged user.Quickstartdwollaswaggermakes it easy for developers to hit the ground running
with our API. Before attempting the following, you should ideally createan application key and secret.Configuring a clientTo get started, all you need to set is theaccess_tokenandhostvalues.dwollaswagger.configuration.access_token='token'# For UAT/Sandboxclient=dwollaswagger.ApiClient('https://api-uat.dwolla.com')# For Productionclient=dwollaswagger.ApiClient('https://api.dwolla.com')List 10 customersNow that we’ve set up our client, we can use it to make requests to the
API. Let’s retrieve 10 customer records associated with the
authorization token used.dwollaswagger.configuration.access_token='token'client=dwollaswagger.ApiClient('https://api-uat.dwolla.com')customers_api=dwollaswagger.CustomersApi(client)my_custies=customers_api.list(limit=10)my_custieswill be a Python list that consists ofCustomerobjects.Creating a new customerTo create a customer, we can either provide adictwith the expected
values, or aCreateCustomerobject.customers_api=dwollaswagger.CustomersApi(client)location=customers_api.create(body={'firstName':"Jennifer",'lastName':"Smith",'email':"jsmith@gmail.com",'phone':"7188675309"})orcustomers_api=dwollaswagger.CustomersApi(client)new_cust=dwollaswagger.CreateCustomernew_cust.first_name="Jennifer"new_cust.last_name="Smith"new_cust.email="jsmith@gmail.com"new_cust.phone="7188675309"location=customers_api.create(body=new_cust)locationwill contain a URL to your newly created resource (HTTP 201
/ Location header).Modulesdwolla-python-swaggercontainsAPImodules which allow the user
to make requests, as well asmodelswhich areDAOsthat the
library uses to serialize responses.APIEach API module is named in accordance to (Dwolla’s API
Specand encapsulates all of the
documented functionality.AccountsApiBusinessclassificationsApiCustomersApiDocumentsApiEventsApiFundingsourcesApiRootApiTransfersApiWebhooksApiWebhooksubscriptionsApiAPI objects take anApiClientargument, which you createdhere.Exampledoc_api=dwollaswagger.DocumentsApi(your_client_object)ModelsEach model represents the different kinds of requests and responses that
can be made with the Dwolla API.AccountInfoAmountApplicationEventBaseObjectBusinessClassificationBusinessClassificationListResponseCreateCustomerCreateFundingSourceRequestCreateWebhookCustomerCustomerListResponseDocumentDocumentListResponseEventListResponseFundingSourceFundingSourceListResponseHalLinkMoneyTransferTransferListResponseTransferRequestBodyUnitUpdateCustomerVerificationTokenVerifyMicroDepositsRequestWebhookWebhookAttemptWebhookEventListResponseWebhookHeaderWebhookHttpRequestWebhookHttpResponseWebhookListResponseWebhookRetryWebhookRetryRequestListResponseWebhookSubscriptionREADMEIn order for the library’s README file to display nicely on PyPi, we
must use the*.rstfile format. When making changes to this README
file, pleaseuse this toolto convert the*.mdfile to*.rst, and make sure to keep both
files updated.Changelog1.0.9 * API schema updated,CustomersAPIsupports Customer search,
new softDelete method inFundingSourcesApi.1.0.8 * API schema updated, newMasspaymentsApiandMasspaymentitemsApi. NewMassPaymentandMassPaymentItemmodels.1.0.7 * API schema updated,TransfersApihas new endpoints for
cancel a transfer and get a transfer’s fees, newOndemandauthorizationsApi. * ExistingMicroDepositsandDocumentsmodels updated, newFacilitatorFeeRequest,Authorization, andUpdateTransfermodels.1.0.6 * Patch datetime issue in Models.1.0.5 * API schema error fixed,FundingSourceobject now has_embeddedkey to fix serialization issues.1.0.4 * API schema updated,CustomersApihas new endpoints for IAV
verification. * ExistingCustomerrelated models updated, newVerificationTokenmodel. * (release skipped, features in 1.0.5)1.0.3 * API schema updated,RootApinow added. * Changedauth_tokentoaccess_tokenin compliance withRFC-6749recommended
nomenclature.1.0.2 * API schema updated, new methods inFundingsourcesApi. *
All methods which take Swagger variables inpath(e.g,/resource/{id}) can now be passed a resource URL to make it easier
for HAL-styled API consumption. * More idiomatic response logic for
HTTP 201 responses. * Fix syntax error in README1.0.1 * API schema updated, new methods inCustomersApiandTransfersApi1.0.0 * Initial release.CreditsThis wrapper is semantically generated by a fork ofswagger-codegen. -swagger-codegen
contributors-David StancuLicenseCopyright 2015 Swagger Contributors, David StancuLicensed under the Apache License, Version 2.0 (the “License”); you may
not use this file except in compliance with the License. You may obtain
a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.