Skip to content

Commit 2f2e810

Browse files
committed
Add MANIFEST.in; Fix README.md; Bump ver. 0.3.1
1 parent 2faa708 commit 2f2e810

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include README.md

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pip install salesforce-python
1111
```
1212
from salesforce.client import Client
1313
14-
client = Client('CLIENT_KEY', 'CLIENT_SECRET', 'https://na50.salesforce.com/', 'v41.0')
14+
client = Client('CLIENT_KEY', 'CLIENT_SECRET', 'https://na50.salesforce.com/', 'v41.0') # Host must have trailing slash
1515
```
1616

1717
Get authorization url
@@ -70,7 +70,7 @@ Get an object described
7070
metadata = client.get_sobject_describe('Lead')
7171
```
7272

73-
## Webhook
73+
### Webhooks
7474
In order to create a webhook in Salesforce we need to create an APEX Class, Remote Site and Apex Trigger.
7575

7676
Create the APEX Class
@@ -106,7 +106,7 @@ body = body.replace('{sobject}', sobject)
106106
body = body.replace('{events}', event)
107107
body = body.replace('{url}', "'" + url + "'")
108108
109-
response = client.create_apex_trigger('WebhookTrigger', body, sobject')
109+
response = client.create_apex_trigger('WebhookTrigger', body, sobject)
110110
```
111111

112112
That's all, you should receive notifications every time you create a new user in your Salesforce dashboard.

setup.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
import os
12
from setuptools import setup
23

4+
5+
def read(fname):
6+
return open(os.path.join(os.path.dirname(__file__), fname)).read()
7+
8+
39
setup(name='salesforce-python',
4-
version='0.3',
10+
version='0.3.1',
511
description='API wrapper for Salesforce written in Python',
12+
long_description=read('README.md'),
613
url='https://github.com/GearPlug/salesforce-python',
714
author='Miguel Ferrer',
815
author_email='[email protected]',

0 commit comments

Comments
 (0)