Example of a connection in Postman
Prerequisites
First, get your API credentials. See Where to create API credentials? .
Create x-auth-token
Open https://developer.mopinion.com/credential-checker.php .
Use Public key (A) as the Public Key (A) and Token (C) as the Signature token (C) in our API Credential Checker.
Depending on the Resource endpoint (E), see https://developer.mopinion.com/ for an overview of the available endpoints, set the Resource endpoint (E) .
Depending on the Resource endpoint (E) set the Request Method (D) to GET, POST, PUT, DELETE, or OPTIONS . Most endpoints only support the GET method.
When all is set you will get a unique x-auth-token (F) for this request to set in the header of your request.
Example
To demonstrate the configuration of the endpoints and output we use the form https://example.mopinion.com/r/data-collection/survey/edit/4/web/detail in report Integrations. Public landingpage https://example.mopinion.com/survey/public/take-survey/a958c693f143483d3da418c097181ab8a4e393f1
And deployment code https://example.mopinion.com/r/data-collection/deployment/edit/z4CxctMLgIz6n2iLmqZxXu7XMGVSIWyPbn14j54s/web .
Running on https://sample.mopinion.com/integrations/.
Useful properties are the form id 4 and deployment code z4CxctMLgIz6n2iLmqZxXu7XMGVSIWyPbn14j54s.
Endpoints
Account
Configuration
Endpoint: https://api.mopinion.com/account
API documentation: https://developer.mopinion.com/#tag/account%2Fpaths%2F~1account%2Fget
x-auth-token: OGUxNDBjN2ZmZTVkZDFhOmE0OThkNGE5N2I5NTU1ZDI0OTcyODdjMzhmMjcxMDYwZDIyZmIxNDhiMGRlZDFjMzdlYWIyYjk0NjI2YWI5MjI=
Postman interface
Output
Deployments
Configuration
Endpoint: https://api.mopinion.com/deployments/z4CxctMLgIz6n2iLmqZxXu7XMGVSIWyPbn14j54s ← https://api.mopinion.com/deployments/{deployment-id}
API documentation: https://developer.mopinion.com/#tag/deployments%2Fpaths%2F~1deployments~1%7Bdeployment-id%7D%2Fget
x-auth-token: OGUxNDBjN2ZmZTVkZDFhOmFiOTA1M2Y5YmY4OGJmNjM3YTcxMGI4MzEwZGYzMTkxNmNkZmUwYThmZDUzOTA1Njk3NDMzMGE2Mjk1ZTRkYWE=
Postman interface
Output
Datasets (forms)
Configuration
Endpoint: https://api.mopinion.com/...
API documentation: https://developer.mopinion.com/#tag/account%2Fpaths%2F~1account%2Fget
x-auth-token: ...=
Postman interface
…
Output
Fields (questions)
Configuration
Endpoint: https://api.mopinion.com/...
API documentation: https://developer.mopinion.com/#tag/account%2Fpaths%2F~1account%2Fget
x-auth-token: ...=
Postman interface
…
Output
Feedback
Configuration
Endpoint: https://api.mopinion.com/datasets/4/feedback[/407] ← https://api.mopinion.com/datasets/{dataset-id}/feedback[/{feedback-id}]
API documentation: https://developer.mopinion.com/#tag/account%2Fpaths%2F~1account%2Fget
x-auth-token: ...=
Postman interface
…
Output
Reports
Configuration
Endpoint: https://api.mopinion.com/...
API documentation: https://developer.mopinion.com/#tag/account%2Fpaths%2F~1account%2Fget
x-auth-token: ...=
Postman interface
…
Output