Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Authentication
- REQUEST:
- POST /sales/1.1/auth HTTP/1.1
- Host: api.related.com
- Cache-Control: no-cache
- Content-Type: application/x-www-form-urlencoded
- grant_type=password&username={username}&password={password}
- SUCCESS RESPONSE (JSON):
- HTTP 200
- {
- "access_token": "abcdefg1234567",
- "token_type": "bearer",
- "expires_in": 599
- }
- ERROR RESPONSE (JSON):
- HTTP 401
- {
- "error": "invalid_grant",
- "error_description": "The user name or password is incorrect."
- }
- Insert Prospect
- REQUEST:
- POST /sales/1.0/properties/215/prospects HTTP/1.1
- Host: api.related.com
- Authorization: Bearer {access_token}
- Content-Type: application/json
- Cache-Control: no-cache
- {
- "followupCode": "E",
- "source": "Ad: Online",
- "firstName" : "First Name",
- "lastName": "Last Name",
- "email": "EmailAddress@gmail.com",
- "phone": "212-222-2222",
- "postalcode" : "10019",
- "country": "US"
- }
- SUCCESS RESPONSE:
- HTTP 200
- ERROR RESPONSE:
- HTTP 400
- {
- "message": "Prospect Object Invalid:\n Error message from BCMS",
- "statusCode": 400
- }
- Get Marketing Sources
- REQUEST:
- GET /sales/1.0/properties/{propertyId}/marketingsources HTTP/1.1
- Host: api.related.com
- Authorization: Bearer {access_token}
- Content-Type: application/json
- Cache-Control: no-cache
- RESPONSE:
- HTTP 200
- ["Marketing Source", "Marketing Source"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement