{"info":{"_postman_id":"7e82eb0f-c925-3f9d-8bef-9297b6949832","name":"phpList 4 REST API Demo","description":"<html><head></head><body><p>Pre-prepared requests to demonstrate the phpList 4 REST API. Installation and documentation: <a href=\"https://github.com/phpList/base-distribution\">https://github.com/phpList/base-distribution</a>.</p>\n<p>This collection assumes you are running phpList 4 in Testing Mode with the built-in PHP development server on port 8000 with aninitialised phpList database which phpList 4 has been configured to use.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3293511","collectionId":"7e82eb0f-c925-3f9d-8bef-9297b6949832","publishedId":"RVftkC9t","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-02-10T15:21:24.000Z"},"item":[{"name":"create session","id":"aad5a22f-8de6-4c8e-ab84-8d54cd26cccf","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic YWRtaW46a2V5cWVtZXJybmdhbG9naW4="}],"body":{"mode":"raw","raw":"{\n    \"login_name\": \"admin\",\n    \"password\": \"phplist\"\n}"},"url":"http://local.pl2/lists/base/public/app.php/api/v2/sessions/","urlObject":{"protocol":"http","path":["lists","base","public","app.php","api","v2","sessions",""],"host":["local","pl2"],"query":[],"variable":[]}},"response":[],"_postman_id":"aad5a22f-8de6-4c8e-ab84-8d54cd26cccf"},{"name":"get lists","id":"429c409a-ceb0-c5d0-3eca-d9eb2b197bdd","request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"text/xml","type":"text"}],"body":{"mode":"raw","raw":"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n   <SOAP-ENV:Body>\n      <ns4905:phpListHosted.HelloWorld xmlns:ns4905=\"http://tempuri.org\" />\n   </SOAP-ENV:Body>\n</SOAP-ENV:Envelope>"},"url":"https://staging.phplist.com/API/soap.php?wsdl&tag=phplist&user=michiel-phplist@phplist.com&pass=test","urlObject":{"protocol":"https","path":["API","soap.php"],"host":["staging","phplist","com"],"query":[{"key":"wsdl","value":null},{"key":"tag","value":"phplist"},{"key":"user","value":"michiel-phplist@phplist.com"},{"key":"pass","value":"test"}],"variable":[]}},"response":[],"_postman_id":"429c409a-ceb0-c5d0-3eca-d9eb2b197bdd"},{"name":"add subscriber","id":"f40e6c04-12b6-a041-3e02-39c81f063010","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic OjhiOTFiNWQ1MWU1YWY4ZWFiNjYxNTlkNjAzNmRiMmU4"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"rest-api-created3@example.com\",\n    \"confirmed\": true,\n    \"blacklisted\": true,\n    \"html_email\": false,\n    \"disabled\": true\n}"},"url":"http://127.0.0.1:8000/api/v2/subscribers","urlObject":{"protocol":"http","port":"8000","path":["api","v2","subscribers"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f40e6c04-12b6-a041-3e02-39c81f063010"},{"name":"get all list subscribers","id":"4710e871-973d-46fa-94b7-727fdc292cd5","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic OjlkMTk0OTA2NzBhYTNiMTNlNjk4Yzk4OTUxNDYyMzlm"}],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/v2/lists/2/members","urlObject":{"protocol":"http","port":"8000","path":["api","v2","lists","2","members"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"4710e871-973d-46fa-94b7-727fdc292cd5"},{"name":"get list info","id":"15badf7a-bd52-c0cd-0f86-260f4134f8d0","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Basic OjY4ODdjMzE2Y2YxN2Q2YWJkNTQxMjQzNDMxYWI3Yzhl"}],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/v2/lists/2","urlObject":{"protocol":"http","port":"8000","path":["api","v2","lists","2"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"15badf7a-bd52-c0cd-0f86-260f4134f8d0"}]}