{ "info": { "author": "YPlan", "author_email": "julius@yplanapp.com", "bugtrack_url": null, "classifiers": [], "description": "Salesforce Oauth Request\n========================\n\nA bit of Requests driven utility code to drive the Salesforce.com Oauth2\nWeb flow. Use this module to login to a Salesforce account using just\nthe username and password. Good for tests and scripts which need\nSalesforce access\\_token access.\n\n\nInstallation\n------------\n\n.. code-block:: python\n\n pip install salesforce-oauth-request-yplan\n\n\nUsage\n-----\n\nYou need a Connected App defined in Salesforce so that you have all\nthese pieces of info:\n\n1. ``client ID``\n2. ``client secret``\n3. ``redirect uri``\n\nNow you can get an ``access_token`` and ``instance_url`` like this:\n\n.. code-block:: python\n\n import salesforce_oauth_request\n\n result = salesforce_oauth_request.login(username=username,\n password=password,\n client_id=client_id,\n client_secret=client_secret,\n redirect_uri=redirect_uri)\n\n print \"Access token: {}\".format(result['access_token'])\n print \"Refresh token: {}\".format(result['refresh_token'])\n print \"Instance URL: {}\".format(result['instance_url'])\n\n # Now use access_token, instance_url for REST, SOAP, or BULK API access.\n\n\nOptions\n-------\n\n.. code-block:: python\n\n cache_session=True/False - default False\n\nPass the option ``cache_session=true`` to save the access token to\n``~.sf_oauth`` to save time on repeated runs.\n\n.. code-block:: python\n\n sandbox=True/False - default False\n\nPass ``sandbox=True`` to use a sandbox login. ## Testing\n\n\n\n\nHistory\n-------\n\n1.1.1 (2016-07-14)\n------------------\n\n* Brought back ``HISTORY.rst``.\n* Changed package repository url to the fork.\n\n\n1.1.0 (2016-07-14)\n------------------\n\n* Python2 and Python3 compatibility.\n* Forked `salesforce-oauth-request-yplan` package.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/YPlan/salesforce-oauth-request", "keywords": null, "license": "Copyright (c) 2013 Scott Persinger\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "salesforce-oauth-request-yplan", "package_url": "https://pypi.org/project/salesforce-oauth-request-yplan/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/salesforce-oauth-request-yplan/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/YPlan/salesforce-oauth-request" }, "release_url": "https://pypi.org/project/salesforce-oauth-request-yplan/1.1.1/", "requires_dist": null, "requires_python": null, "summary": "Util package to drive Salesforce Oauth Web flow for testing.", "version": "1.1.1" }, "last_serial": 2221422, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "493f36ec87e02762f2e4b91d4a2f6ee0", "sha256": "5e774fcb739c5c77d7733b780e4f613857b84a44359ad3db2e305ac2859f6dba" }, "downloads": -1, "filename": "salesforce-oauth-request-yplan-1.1.0.tar.gz", "has_sig": false, "md5_digest": "493f36ec87e02762f2e4b91d4a2f6ee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6920, "upload_time": "2016-07-14T14:33:04", "url": "https://files.pythonhosted.org/packages/39/f1/393a09dccc4e34eb27ef7a9113a09d262a0e31fd8acd2fe641fa6ebe45f4/salesforce-oauth-request-yplan-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "a521ef8729e964d87ced1c61c4845218", "sha256": "f189aedddf61b6f07a6bcaecde5bd57b0ba020af070e2ea574b160fe18f870d5" }, "downloads": -1, "filename": "salesforce-oauth-request-yplan-1.1.1.tar.gz", "has_sig": false, "md5_digest": "a521ef8729e964d87ced1c61c4845218", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7150, "upload_time": "2016-07-14T16:45:05", "url": "https://files.pythonhosted.org/packages/57/a1/6da83cee1ab7fb14fb189fa3d1e4ebcb0578aeb96eafe496d136d6e81488/salesforce-oauth-request-yplan-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a521ef8729e964d87ced1c61c4845218", "sha256": "f189aedddf61b6f07a6bcaecde5bd57b0ba020af070e2ea574b160fe18f870d5" }, "downloads": -1, "filename": "salesforce-oauth-request-yplan-1.1.1.tar.gz", "has_sig": false, "md5_digest": "a521ef8729e964d87ced1c61c4845218", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7150, "upload_time": "2016-07-14T16:45:05", "url": "https://files.pythonhosted.org/packages/57/a1/6da83cee1ab7fb14fb189fa3d1e4ebcb0578aeb96eafe496d136d6e81488/salesforce-oauth-request-yplan-1.1.1.tar.gz" } ] }