{"size": 18800, "ext": "js", "max_stars_repo_path": "lib/telegraph/docs/search-index.js", "max_stars_repo_name": "Lulzx/pro", "max_stars_repo_stars_event_min_datetime": "2020-04-17T16:45:40.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-02T07:28:40.000Z", "max_issues_repo_path": "lib/telegraph/docs/search-index.js", "max_issues_repo_name": "Lulzx/pro", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/telegraph/docs/search-index.js", "max_forks_repo_name": "Lulzx/pro", "max_forks_repo_forks_event_min_datetime": "2022-01-14T14:02:42.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-14T14:02:42.000Z"}
{"max_stars_count": 6, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 18800.0, "max_line_length": 18800, "alphanum_fraction": 0.7146276596}
crystal_doc_search_index_callback({"repository_name":"github.com/lulzx/telegraph","body":"# telegraph\n\nCrystal [Telegraph API](https://telegra.ph) wrapper [![Build Status](https://travis-ci.com/Lulzx/telegraph.svg?branch=master)](https://travis-ci.com/Lulzx/telegraph)\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     telegraph:\n       github: lulzx/telegraph\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"telegraph\"\n```\n\nTODO: Write usage instructions here\n\n## Development\n\nTODO: Write development instructions here\n\n## Contributing\n\n1. Fork it (<https://github.com/lulzx/telegraph/fork>)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [lulzx](https://github.com/lulzx) - creator and maintainer\n","program":{"html_id":"github.com/lulzx/telegraph/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"github.com/lulzx/telegraph","program":true,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":null,"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"github.com/lulzx/telegraph/Request","path":"Request.html","kind":"module","full_name":"Request","name":"Request","abstract":false,"superclass":null,"ancestors":[],"locations":[{"filename":"telegraph/request.cr","line_number":3,"url":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph/request.cr"}],"repository_name":"github.com/lulzx/telegraph","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"github.com/lulzx/telegraph/Telegraph","kind":"module","full_name":"Telegraph","name":"Telegraph"}],"namespace":null,"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"get(method,params):String-instance-method","html_id":"get(method,params):String-instance-method","name":"get","doc":null,"summary":null,"abstract":false,"args":[{"name":"method","doc":null,"default_value":"","external_name":"method","restriction":""},{"name":"params","doc":null,"default_value":"","external_name":"params","restriction":""}],"args_string":"(method, params) : String","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph/request.cr#L4","def":{"name":"get","args":[{"name":"method","doc":null,"default_value":"","external_name":"method","restriction":""},{"name":"params","doc":null,"default_value":"","external_name":"params","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = HTTP::Client.get(\"https://api.telegra.ph/#{method}?\" + (HTTP::Params.encode(params)))\nreturn response.body\n"}}],"macros":[],"types":[]},{"html_id":"github.com/lulzx/telegraph/Telegraph","path":"Telegraph.html","kind":"module","full_name":"Telegraph","name":"Telegraph","abstract":false,"superclass":null,"ancestors":[{"html_id":"github.com/lulzx/telegraph/Request","kind":"module","full_name":"Request","name":"Request"}],"locations":[{"filename":"telegraph/version.cr","line_number":1,"url":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph/version.cr"},{"filename":"telegraph.cr","line_number":3,"url":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr"}],"repository_name":"github.com/lulzx/telegraph","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"\"0.1.0\"","doc":null,"summary":null}],"included_modules":[{"html_id":"github.com/lulzx/telegraph/Request","kind":"module","full_name":"Request","name":"Request"}],"extended_modules":[{"html_id":"github.com/lulzx/telegraph/Telegraph","kind":"module","full_name":"Telegraph","name":"Telegraph"}],"subclasses":[],"including_types":[],"namespace":null,"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"account_info(access_token:String,fields:Array=[“short_name”,“author_name”,“author_url”])-instance-method","html_id":"account_info(access_token:String,fields:Array=[“short_name”,“author_name”,“author_url”])-instance-method","name":"account_info","doc":null,"summary":null,"abstract":false,"args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"fields","doc":null,"default_value":"[“short_name”, “author_name”, “author_url”]","external_name":"fields","restriction":"Array"}],"args_string":"(access_token : String, fields : Array = [“short_name”, “author_name”, “author_url”])","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L31","def":{"name":"account_info","args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"fields","doc":null,"default_value":"[“short_name”, “author_name”, “author_url”]","external_name":"fields","restriction":"Array"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"getAccountInfo\"\nparams = {\"access_token\" => access_token, \"fields\" => fields}\nget(method, params)\n"}},{"id":"create_account(short_name:String,author_name:String=&quot;&quot;,author_url:String=&quot;&quot;)-instance-method","html_id":"create_account(short_name:String,author_name:String=&amp;quot;&amp;quot;,author_url:String=&amp;quot;&amp;quot;)-instance-method","name":"create_account","doc":null,"summary":null,"abstract":false,"args":[{"name":"short_name","doc":null,"default_value":"","external_name":"short_name","restriction":"String"},{"name":"author_name","doc":null,"default_value":"\"\"","external_name":"author_name","restriction":"String"},{"name":"author_url","doc":null,"default_value":"\"\"","external_name":"author_url","restriction":"String"}],"args_string":"(short_name : String, author_name : String = <span class=\"s\">&quot;&quot;</span>, author_url : String = <span class=\"s\">&quot;&quot;</span>)","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L7","def":{"name":"create_account","args":[{"name":"short_name","doc":null,"default_value":"","external_name":"short_name","restriction":"String"},{"name":"author_name","doc":null,"default_value":"\"\"","external_name":"author_name","restriction":"String"},{"name":"author_url","doc":null,"default_value":"\"\"","external_name":"author_url","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"createAccount\"\nparams = {\"short_name\" => short_name, \"author_name\" => author_name, \"author_url\" => author_url}\nget(method, params)\n"}},{"id":"create_page(access_token:String,title:String,author_name:String=&quot;&quot;,author_url:String=&quot;&quot;,content:Array=[]ofString,return_content:Bool=false)-instance-method","html_id":"create_page(access_token:String,title:String,author_name:String=&amp;quot;&amp;quot;,author_url:String=&amp;quot;&amp;quot;,content:Array=[]ofString,return_content:Bool=false)-instance-method","name":"create_page","doc":null,"summary":null,"abstract":false,"args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"title","doc":null,"default_value":"","external_name":"title","restriction":"String"},{"name":"author_name","doc":null,"default_value":"\"\"","external_name":"author_name","restriction":"String"},{"name":"author_url","doc":null,"default_value":"\"\"","external_name":"author_url","restriction":"String"},{"name":"content","doc":null,"default_value":"[] of String","external_name":"content","restriction":"Array"},{"name":"return_content","doc":null,"default_value":"false","external_name":"return_content","restriction":"Bool"}],"args_string":"(access_token : String, title : String, author_name : String = <span class=\"s\">&quot;&quot;</span>, author_url : String = <span class=\"s\">&quot;&quot;</span>, content : Array = <span class=\"o\">[]</span> <span class=\"k\">of</span> <span class=\"t\">String</span>, return_content : Bool = <span class=\"n\">false</span>)","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L13","def":{"name":"create_page","args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"title","doc":null,"default_value":"","external_name":"title","restriction":"String"},{"name":"author_name","doc":null,"default_value":"\"\"","external_name":"author_name","restriction":"String"},{"name":"author_url","doc":null,"default_value":"\"\"","external_name":"author_url","restriction":"String"},{"name":"content","doc":null,"default_value":"[] of String","external_name":"content","restriction":"Array"},{"name":"return_content","doc":null,"default_value":"false","external_name":"return_content","restriction":"Bool"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"createPage\"\nparams = {\"access_token\" => access_token, \"title\" => title, \"author_name\" => author_name, \"author_url\" => author_url, \"content\" => content, \"return_content\" => return_content}\nget(method, params)\n"}},{"id":"edit_account_info(access_token:String,short_name:String,author_name:String=&quot;&quot;,author_url:String=&quot;&quot;)-instance-method","html_id":"edit_account_info(access_token:String,short_name:String,author_name:String=&amp;quot;&amp;quot;,author_url:String=&amp;quot;&amp;quot;)-instance-method","name":"edit_account_info","doc":null,"summary":null,"abstract":false,"args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"short_name","doc":null,"default_value":"","external_name":"short_name","restriction":"String"},{"name":"author_name","doc":null,"default_value":"\"\"","external_name":"author_name","restriction":"String"},{"name":"author_url","doc":null,"default_value":"\"\"","external_name":"author_url","restriction":"String"}],"args_string":"(access_token : String, short_name : String, author_name : String = <span class=\"s\">&quot;&quot;</span>, author_url : String = <span class=\"s\">&quot;&quot;</span>)","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L19","def":{"name":"edit_account_info","args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"short_name","doc":null,"default_value":"","external_name":"short_name","restriction":"String"},{"name":"author_name","doc":null,"default_value":"\"\"","external_name":"author_name","restriction":"String"},{"name":"author_url","doc":null,"default_value":"\"\"","external_name":"author_url","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"editAccountInfo\"\nparams = {\"access_token\" => access_token, \"short_name\" => short_name, \"author_name\" => author_name, \"author_url\" => author_url}\nget(method, params)\n"}},{"id":"edit_page(access_token:String,path:String,title:String,content:Array,author_name:String)-instance-method","html_id":"edit_page(access_token:String,path:String,title:String,content:Array,author_name:String)-instance-method","name":"edit_page","doc":null,"summary":null,"abstract":false,"args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"path","doc":null,"default_value":"","external_name":"path","restriction":"String"},{"name":"title","doc":null,"default_value":"","external_name":"title","restriction":"String"},{"name":"content","doc":null,"default_value":"","external_name":"content","restriction":"Array"},{"name":"author_name","doc":null,"default_value":"","external_name":"author_name","restriction":"String"}],"args_string":"(access_token : String, path : String, title : String, content : Array, author_name : String)","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L25","def":{"name":"edit_page","args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"path","doc":null,"default_value":"","external_name":"path","restriction":"String"},{"name":"title","doc":null,"default_value":"","external_name":"title","restriction":"String"},{"name":"content","doc":null,"default_value":"","external_name":"content","restriction":"Array"},{"name":"author_name","doc":null,"default_value":"","external_name":"author_name","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"editPage\"\nparams = {\"access_token\" => access_token, \"abc\" => abc, \"abc\" => abc, \"abc\" => abc, \"abc\" => abc, \"abc\" => abc, \"abc\" => abc}\nget(method, params)\n"}},{"id":"page(path:String,return_content:Bool=false)-instance-method","html_id":"page(path:String,return_content:Bool=false)-instance-method","name":"page","doc":null,"summary":null,"abstract":false,"args":[{"name":"path","doc":null,"default_value":"","external_name":"path","restriction":"String"},{"name":"return_content","doc":null,"default_value":"false","external_name":"return_content","restriction":"Bool"}],"args_string":"(path : String, return_content : Bool = <span class=\"n\">false</span>)","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L37","def":{"name":"page","args":[{"name":"path","doc":null,"default_value":"","external_name":"path","restriction":"String"},{"name":"return_content","doc":null,"default_value":"false","external_name":"return_content","restriction":"Bool"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"getPage\"\nparams = {\"path\" => path, \"return_content\" => return_content.to_s}\nget(method, params)\n"}},{"id":"page_list(access_token:String,offset:Int32=0,limit:Int32=50)-instance-method","html_id":"page_list(access_token:String,offset:Int32=0,limit:Int32=50)-instance-method","name":"page_list","doc":null,"summary":null,"abstract":false,"args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"offset","doc":null,"default_value":"0","external_name":"offset","restriction":"Int32"},{"name":"limit","doc":null,"default_value":"50","external_name":"limit","restriction":"Int32"}],"args_string":"(access_token : String, offset : Int32 = <span class=\"n\">0</span>, limit : Int32 = <span class=\"n\">50</span>)","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L43","def":{"name":"page_list","args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"},{"name":"offset","doc":null,"default_value":"0","external_name":"offset","restriction":"Int32"},{"name":"limit","doc":null,"default_value":"50","external_name":"limit","restriction":"Int32"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"getPageList\"\nparams = {\"access_token\" => access_token, \"offset\" => offset.to_s, \"limit\" => limit.to_s}\nget(method, params)\n"}},{"id":"revoke_access_token(access_token:String)-instance-method","html_id":"revoke_access_token(access_token:String)-instance-method","name":"revoke_access_token","doc":null,"summary":null,"abstract":false,"args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"args_string":"(access_token : String)","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L55","def":{"name":"revoke_access_token","args":[{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"revokeAccessToken\"\nparams = {\"access_token\" => access_token}\nget(method, params)\n"}},{"id":"views(path:String,year:Int32,month:Int32,day:Int32,hour:Int32)-instance-method","html_id":"views(path:String,year:Int32,month:Int32,day:Int32,hour:Int32)-instance-method","name":"views","doc":null,"summary":null,"abstract":false,"args":[{"name":"path","doc":null,"default_value":"","external_name":"path","restriction":"String"},{"name":"year","doc":null,"default_value":"","external_name":"year","restriction":"Int32"},{"name":"month","doc":null,"default_value":"","external_name":"month","restriction":"Int32"},{"name":"day","doc":null,"default_value":"","external_name":"day","restriction":"Int32"},{"name":"hour","doc":null,"default_value":"","external_name":"hour","restriction":"Int32"}],"args_string":"(path : String, year : Int32, month : Int32, day : Int32, hour : Int32)","source_link":"https://github.com/lulzx/telegraph/blob/02bf30288f4ea2a88c3ef133e81fd17f41ef7559/src/telegraph.cr#L49","def":{"name":"views","args":[{"name":"path","doc":null,"default_value":"","external_name":"path","restriction":"String"},{"name":"year","doc":null,"default_value":"","external_name":"year","restriction":"Int32"},{"name":"month","doc":null,"default_value":"","external_name":"month","restriction":"Int32"},{"name":"day","doc":null,"default_value":"","external_name":"day","restriction":"Int32"},{"name":"hour","doc":null,"default_value":"","external_name":"hour","restriction":"Int32"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"method = \"getViews\"\nparams = {\"path\" => path, \"year\" => year, \"month\" => month, \"day\" => day, \"hour\" => hour}\nget(method, params)\n"}}],"macros":[],"types":[]}]}})