/source/provision

This channel is for the feels provisioning.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

POST Request Explanation:

In this POST, there are multiple parameters we are sending. Below is a table with the explanation​ for each of them:

ParameterDescription
api_keyYou can find this key inside your admin FeelBack console. It's needed to get access to your account API.
tokenPlease always use the same value PUP5S9L6RL5QSYZ67Q8ZJQXY5AHEXJ3V.
typeIn this API, always use CUSTOM. It means it’s a custom implementation for developers.
source_hashSend a unique hash for your source. It needs to be auto-generated by the developer.
feels

Here you have to send a JSON string with the feels you want to insert for the source hash given.

For more information, please click here!

Request Response:

After creating our source, the response will contain information related to our source and the question hash sent in the POST parameters.

VariablesValues
  • msg
  • *NO KEY ID** - When your key is empty.
  • *NO VALID TOKEN** - When the token is not valid.
  • *NO SOURCEHASH VALUE** - When the source hash is empty.
  • *NO SOURCE FOUND** - When your source is not related to your account.
  • *NO ACCOUNT RELATED TO API KEY** - When your API key is not found in our database.
  • *ERROR WHILE SAVING** - When any type of error adding data occurs.
  • *NO VALID SOURCE TYPE** - When the source type is not valid. Always use CUSTOM.
  • *NO VALID FEELS** - When the JSON string with feels doesn't have a valid format or fields.
  • *OK** - If everything is good.
codeThe request code. Can be 200 for success or 400 for any type of errors.
Form Data
string
required
Defaults to 49b3de2edb366f44db8d6b8bae2e6d46

Your account api_key.

string
required
Defaults to PUP5S9L6RL5QSYZ67Q8ZJQXY5AHEXJ3V

Always use the same value.

string
required
Defaults to CUSTOM

Type of source: in this case, we use CUSTOM.

string
required
Defaults to tester0993029333

Source hash ID to get the information relative.

string
required
Defaults to [ { "timestamp":"2017-04-07 14:00:00", "feel_val":"GOOD", "lat":"9.018749237060547", "lon":"-79.53340911865234", "timezone":"-500", "timeoffset":"300", "question_hash":"a5bfc9e07964f8dddeb95fc584cd965d", "prompt_hash":"", "comment":"COOL MAN", "people":{ "user_id":"22", "first_name":"John1", "email":"[email protected]", "person_attributes":{ "state":"Florida" } } }, { "timestamp":"2017-04-07 14:00:00", "feel_val":"GOOD", "lat":"9.018749237060547", "lon":"-79.53340911865234", "timezone":"-500", "timeoffset":"300", "question_hash":"a5bfc9e07964f8dddeb95fc584cd965d", "prompt_hash":"", "comment":"COOL MAN", "people":{ "user_id":"23", "first_name":"John2", "email":"[email protected]", "person_attributes":{ "state":"California" } } }, { "timestamp":"2017-04-07 14:00:00", "feel_val":"BAD", "lat":"9.018749237060547", "lon":"-79.53340911865234", "timezone":"-500", "timeoffset":"300", "question_hash":"a5bfc9e07964f8dddeb95fc584cd965d", "prompt_hash":"084b6fbb10729ed4da8c3d3f5a3ae7c9", "comment":"COOL!", "people":{ "user_id":"24", "first_name":"John3", "email":"[email protected]", "person_attributes":{ "state":"Florida" } } } ]

JSON object for the feels to be inserted.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json