URLs
eg - http://sampleurl.com/example
status
and data{
"status":"0",
"messages" : [
{
"message": "Sample message one",
"more_info_text" : "Sample text one",
"more_info_link" : "link one"
},
"message": "Sample message two",
"more_info_text" : "Sample text two",
"more_info_link" : "link two"
}
],
"errors" : [
{
"message" : "Sample error one"
},
{
"message" : "Sample error two"
}
]
}
Status | Description | Notes |
1 | success | normal response, no input errors |
0 | input error | input parameters missing or in invalid format |
-1 | internal error | unexpected internal error |
In an ongoing effort to implement the Federal Digital Strategy, NIDA is connecting Web site editors and developers with the tools they need to host and share the Government’s reliable drug abuse research and prevention information.