{"id":16562238,"url":"https://github.com/afilini/askfmapi","last_synced_at":"2025-10-28T23:30:53.177Z","repository":{"id":18775964,"uuid":"21989088","full_name":"afilini/AskFmApi","owner":"afilini","description":"Ask.fm php api","archived":false,"fork":false,"pushed_at":"2014-07-24T14:14:59.000Z","size":208,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-01T19:03:32.259Z","etag":null,"topics":["api-client","fm-api","php","php-integrator"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afilini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-18T17:47:17.000Z","updated_at":"2022-11-16T15:31:51.000Z","dependencies_parsed_at":"2022-07-25T06:46:53.822Z","dependency_job_id":null,"html_url":"https://github.com/afilini/AskFmApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afilini%2FAskFmApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afilini%2FAskFmApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afilini%2FAskFmApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afilini%2FAskFmApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afilini","download_url":"https://codeload.github.com/afilini/AskFmApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238737897,"owners_count":19522271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","fm-api","php","php-integrator"],"created_at":"2024-10-11T20:35:29.875Z","updated_at":"2025-10-28T23:30:52.868Z","avatar_url":"https://github.com/afilini.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ask.fm API\n==========\n\nIntroduction\n------------\n\nThis is an unofficial PHP API for ask.fm.\n\nFeatures\n--------\n\n- Asking questions, anonymously or with an account\n- Fetching open questions for a profile\n- Answering questions\n- Deleting questions\n\nIntroduction\n------------\n\nThe libraries are contained in `ask.php`. To use the API, simply write\n\n    require('ask.php');\n    \nat the top of your file. Note that both `ask.php`and `simple_html_dom.php` are required.\n\n`ask.php` defines the `class` `AskFm`. It exposes these properties:\n\n    class askFm {\n        public $lastError;\n        \n        public function __construct($cookieFile = \"cookies.txt\") {\n        \n        }\n    \n        public function ask($nickname, $question, $anon = false) {\n        \n        }\n        \n        public function login($nickname, $password){\n        \n        }\n    \n        public function logout() {\n        \n        }\n    \n        public function fetchQuestions() {\n            \n        }\n    \n        public function checkQuestion($questionId){\n            \n        }\n    \n        public function answer($questionId, $text){\n            \n        }\n    \n        public function delete($questionId){\n            \n        }\n    \n        public function deleteAll(){\n            \n        }\n    }\n\nThe Ask object\n--------------\n\nTo use the API you must declare a `new AskFm` object, like this:\n\n    $ask = new AskFm;\n    \nlastError\n---------\n\nWhen using the API, you might run into errors, eg. when trying to fetch questions without having logged in first. In such cases, the function causing the error will return `false` and store the latest error in `$ask-\u003elastError`.\n\nLogging in\n----------\n\nIn order to use some features, you need to log into your ask.fm account. Use the `login($username, $password)` function.\n\n    $ask-\u003elogin('nickname', 'password');\n\nAsking questions\n----------------\n\nTo ask questions, use `ask($nickname, $question, $anon = false)`. By default, questions will be asked using your account; if you wish to ask questions anonymously, pass `true` as the third parameter.\n\n    $ask-\u003eask('afilini', 'How are you?');\n    $ask-\u003eask('afilini', 'How are you?', true); // Same as above, but anonymously\n\nFetching questions\n------------------\n\nTo fetch open (i.e. unanswered) questions for your account, use `fetchQuestions()`. The result is an array whose keys are question IDs, and whose values are question texts.\nThis function returns `false` if an error occurs; see the `lastError` paragraph for more informations on error handling.\n\n    $questions = $ask-\u003efetchQuestions();\n\nAnswering questions\n-------------------\n\nTo answer an open question on your account, use `answer($questionId, $text)`.\n\n    $ask-\u003eanswer('123', 'I'm fine, thanks!');\n\nDeleting questions\n------------------\n\nTo delete a single question, use `delete($questionId)`; to delete all questions, use `deleteAll()`.\n\n    $ask-\u003edelete('123');\n    $ask-\u003edeleteAll();\n    \nAcknowledgements\n------\n\nThis library uses simple_html_dom, by Jose Solorzano: http://sourceforge.net/projects/simplehtmldom/\nThis library was written by afilini.\nThis README was written by CapacitorSet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafilini%2Faskfmapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafilini%2Faskfmapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafilini%2Faskfmapi/lists"}