LaneWeChat

PHP微信开发框架,高效开发微信公众号应用。简洁而又轻量

GitHub下载 查看手册

多客服接口

Visits: 14613 Date: 2014-11-05 14:59:19 Power By 李轩Lane

    

1、类简介:客服功能接口。


        2、使用命名空间:use LaneWeChat\Core\CustomService;


        3、获取客服聊天记录接口,有分页,一次获取一页,一页最多1000条。不能跨日。

            在需要时,开发者可以通过获取客服聊天记录接口,获取多客服的会话记录,包括客服和用户会话的所有消息记录和会话的创建、关闭等操作记录。利用此接口可以开发如“消息记录”、“工作监控”、“客服绩效考核”等功能。

            CustomService::getRecord($startTime, $endTime, $pageIndex=1, $pageSize=1000, $openId='')

            'startTime':查询开始时间,UNIX时间戳

            'startTime':查询结束时间,UNIX时间戳,每次查询不能跨日查询


        4、将用户发送的消息转发到客服:

            调用ResponsePassive::forwardToCustomService($fromusername, $tousername)。

            如用户在微信给公众号发送一条文本消息“iphone 6 多少钱?”,我们就可以在lanewechat/wechatrequest.lib.php文件中的方法text(&$request)中收到这条消息(如果不了解为什么会在这里收到文本消息,请重头再看文档)。

            然后在text(&$request)方法中,我们可以调用ResponsePassive::forwardToCustomService($request['fromusername'], $request['tousername'])。那么刚才用户发的“iphone 6 多少钱?”就会被转发到客服系统,在微信的客服客户端中就可以收到了。


        5、添加客服帐号

            必须先在公众平台官网为公众号设置微信号后才能使用该能力。

            开发者可以通过本接口为公众号添加客服账号,每个公众号最多添加10个客服账号。

            CustomService::addAccount($kfAccount, $nickname, $password)

                $kfAccount String 完整客服账号,格式为:账号前缀@公众号微信号

                $nickname String 昵称

                $password String 密码


        6、修改客服帐号

            必须先在公众平台官网为公众号设置微信号后才能使用该能力。

            CustomService::editAccount($kfAccount, $nickname, $password)

                $kfAccount String 完整客服账号,格式为:账号前缀@公众号微信号

                $nickname String 昵称

                $password String 密码


        7、删除客服帐号

            必须先在公众平台官网为公众号设置微信号后才能使用该能力。

            CustomService::delAccount($kfAccount, $nickname, $password)

                $kfAccount String 完整客服账号,格式为:账号前缀@公众号微信号

                $nickname String 昵称

                $password String 密码


        8、获取所有客服账号

            必须先在公众平台官网为公众号设置微信号后才能使用该能力。

            CustomService::getAccountList($kfAccount, $nickname, $password)

                $kfAccount String 完整客服账号,格式为:账号前缀@公众号微信号

                $nickname String 昵称

                $password String 密码


        9、设置客服帐号的头像

            必须先在公众平台官网为公众号设置微信号后才能使用该能力。

            CustomService::setAccountImage($kfAccount, $imagePath)

                $kfAccount String 完整客服账号,格式为:账号前缀@公众号微信号

                $imagePath String 待上传的头像文件路径

Reply: aadfsf On 2015-09-24 20:59:20

CustomService::getAccountList($kfAccount, $nickname, $password)这个为什么要带上这三个值,不是get吗

回复

Reply: MarkSobby On 2020-03-10 18:46:15

On Line No Prescription Pharamacy http://apcialisle.com/# - Cialis Propecia Estomago <a href=http://apcialisle.com/#>cialis 5 mg</a> Viagra En Algerie

回复

Reply: MarkSobby On 2020-03-20 00:53:04

Viagra Pour Diabetique https://apcialisle.com/# - generic 5mg cialis best price Levitra Filmtabletten 20mg <a href=https://apcialisle.com/#>Cialis</a> Feline Dose Amoxicillin

回复

Reply: Keytbep On 2020-04-28 23:44:19

Viagra Andorre Espagne https://abuycialisb.com/# - Cialis Femara Without A Prescription <a href=https://abuycialisb.com/#>cheap cialis</a> Erfahrungen Cialis Ohne Rezept

回复

Reply: Augusta On 2020-06-04 04:48:13

I like the valuable information you supply on your articles. I'll bookmark your blog and check again right here regularly. I'm moderately certain I'll learn a lot of new stuff right here! Good luck for the next!

回复

Reply: gapeepict On 2020-06-18 14:10:18

Opiates And Keflex https://cheapcialisll.com/ - buy cialis online from india Amoxil Rx <a href=https://cheapcialisll.com/#>Cialis</a> Kamagra Soft Tabs

回复

Reply: п»їcialis On 2020-07-08 22:00:12

vender viagra Namyimmeme https://acialisd.com/# - buy cialis and viagra online Ziveclattive Cialis Tadalafil 5 Mg Ensuts <a href=https://acialisd.com/#>cialis no prescription</a> Gurfafforals Order Kamagra Oral Jelly Australia

回复

Reply: how to buy cialis On 2020-07-21 12:57:15

Generic Viagra Best Prices Namyimmeme https://acialisd.com/# - generic cialis from india Ziveclattive Zithromax Online Buy Ensuts <a href=https://acialisd.com/#>cialis for sale in usa</a> Gurfafforals Propecia Usp

回复

Reply: buy cialis 5mg daily use On 2020-08-18 09:06:45

Generic Elocon Where To Order No Prior Script Lelefuerse https://cialisse.com/ - where to buy cialis online safely tumjuptImpam Dapoxetine 30mg irralymN <a href=https://cialisse.com/#>Cialis</a> goormapoge Tomar Viagra Sildenafil

回复

Reply: Jildcisona On 2020-11-11 07:13:49

п»їviagra online http://fmedrx.com/ <a href="http://fmedrx.com/#">how to buy viagra online</a> viagra goes generic

回复

Reply: Kmrfisona On 2020-11-12 17:35:13

fda approved generic viagra http://usggrxmed.com/ <a href="http://usggrxmed.com/#">is there a generic viagra pill</a> buy online generic viagra

回复

Reply: JivhApery On 2020-11-17 19:30:28

viagra cheaper with prescription <a href="https://purevigra.com/#">comprare viagra generico forum</a> viagra support number

回复

Reply: DevkAlado On 2020-11-20 02:54:33

purchase viagra online nz <a href="https://paradiseviagira.com/#">viagraonline</a> how much is viagra in tuajuana with a prescription

回复

Reply: FrbhAlado On 2020-11-20 14:59:28

viagra prices cvs <a href="https://paradiseviagira.com/#">paradiseviagira.com</a> generic viagra 100

回复

Reply: Fbsgisona On 2020-11-21 07:50:50

natural viagra replacement <a href="https://buybuyviamen.com/#">when can you start taking viagra</a> viagra exige receita mГ©dica

回复

Reply: Fhsbisona On 2020-11-21 15:58:47

viagra kod zena <a href="https://buybuyviamen.com/#">buybuyviamen.com</a> significado palabra viagra

回复

Reply: Kbrgprot On 2020-11-24 15:34:02

us over the counter viagra <a href="https://miraclevigra.com/#">buy female viagra online australia</a> cheap sildenafil 20mg

回复

Reply: Fnrhisona On 2020-11-25 04:28:58

viagra no prescription canada pfizer <a href="https://genqpviag.com/#">viagra .au</a> walmartprices for viagra

回复

Reply: JsweApery On 2020-11-25 17:16:26

viagra canada otc <a href="https://mygoviagar.com/#">best canadian pharmacy generic viagra</a> where to buy viagra online usa

回复

Reply: FdbvAlado On 2020-11-28 09:16:38

sildenafil 50 mg buy online india <a href="https://hopeviagrin.com/#">purchasing viagra in mexico</a> can i buy sildenafil over the counter

回复

Reply: Kwgdprot On 2020-11-29 20:57:07

resume writing service <a href="https://researchpaperssfk.com/#">creative thinking and problem solving</a> write a paper

回复

Reply: Ftghisona On 2020-11-29 22:01:03

writing my paper <a href="https://thesiswritinghelpsjj.com/#">literature essays</a> development essay writing

回复

Reply: JgscApery On 2020-11-30 22:30:14

economic term paper <a href="https://thesisbyd.com/#">science coursework help</a> writing up a qualitative research paper

回复

Reply: DvscAlado On 2020-12-03 03:02:31

research paper 5th and 6th grade <a href="https://dissertationhelpvfh.com/#">buy homework online</a> essay application

回复

Reply: Fqfisona On 2020-12-03 05:36:56

help with assignment review <a href="https://essaywritingservicesjy.com/#">essay papers to buy</a> college supplement essay

回复

Reply: Fnsbisona On 2020-12-03 13:43:24

do my chemistry homework <a href="https://customessaywriterbyz.com/#">order custom term paper</a> best article writing services

回复

Reply: Fgrsisona On 2020-12-11 05:11:23

reasons to use viagra <a href="https://xviagrnorx.com/#">overnight delivery guaranteed viagra</a> buy viagra in canadГЎ

回复

Reply: Khedprot On 2020-12-11 08:36:40

buying viagra from sydney <a href="https://buyviagrrxon.com/#">viagra rx</a> viagra

回复

Reply: Fsfgisona On 2020-12-12 06:00:17

phone number for cheap viagras in fl <a href="https://viagstorerx.com/#">viagra best price</a> quick viagra

回复

Reply: JgsvApery On 2020-12-12 12:24:41

printable viagra coupons <a href="https://atviagrmenrx.com/#">google news cheap viagra</a> viagra onlinre?

回复

Reply: Fbsbisona On 2020-12-12 18:20:11

cialis pharmacy mastercard <a href="https://cialmenon.com/#">buy cialis online in new zealand</a> generic cialis in texas

回复

Reply: DvncAlado On 2020-12-12 19:11:26

cialis canada sale <a href="https://vipmenciall.com/#">cialis pills</a> cialis supplier uk

回复

Reply: Fqbfisona On 2020-12-13 14:32:27

cialis or viagra <a href="https://gocialirx.com/#">cialis generic online</a> cheap cialis free shipping

回复

Reply: DvnjAlado On 2020-12-17 18:38:45

viagra brisbane <a href="https://hopeviagrin.com/#">legitimate viagra suppliers</a> can you buy viagra mexico

回复

Reply: Fwsxisona On 2021-01-09 09:41:03

pharmacy prices <a href="http://canadapharmacyliiu.com/#">dysfunction</a> discount pharmacy card

回复

Reply: MxiMT On 2021-01-10 03:12:09

Medicament information leaflet. What side effects? <a href="https://viagra4u.top">can i order viagra pill</a> in US. Actual trends of medicament. Read here. <a href=http://bpo.gov.mn/content/516>Best news about pills.</a> <a href=https://amp.en.vaskar.co.in/translate/1?to=ru&from=en&source=Medicament%20information.%20Brand%20names.%20%3Ca%20href%3D%22https%3A%2F%2Fprednisone4u.top%22%3Ehow%20to%20get%20cheap%20prednisone%20without%20prescription%3C%2Fa%3E%20in%20USA.%20Everything%20what%20you%20want%20to%20know%20about%20drug.%20Read%20information%20here.%20%0D%0A%5Burl%3Dhttps%3A%2F%2Faloeveraireland.ie%2Fproduct%2Fvitolize-for-men%2F%23comment-69793%5DAll%20news%20about%20medication.%5B%2Furl%5D%20%5Burl%3Dhttp%3A%2F%2Fadegadovinho.imigrantesbebidas.com.br%2F3-drinks-com-espumante-para-fazer-durante-a-quarentena%2F%23comment-75846%5DActual%20what%20you%20want%20to%20know%20about%20meds.%5B%2Furl%5D%20%5Burl%3Dhttps%3A%2F%2Falmohaimeed.net%2Fm%2Far%2F65%5DEverything%20news%20about%20meds.%5B%2Furl%5D%20%20eeb74f7%20&result=%D0%98%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BE%20%D0%BB%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B0%D1%85.%20%D0%A4%D0%B8%D1%80%D0%BC%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5%20%D0%BD%D0%B0%D0%B8%D0%BC%D0%B5%D0%BD%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F.%20%3Ca%20href%3D%22https%3A%2F%2Fprednisone4u.top%22%20%3E%20%D0%BA%D0%B0%D0%BA%20%D0%BF%D0%BE%D0%BB%D1%83%D1%87%D0%B8%D1%82%D1%8C%20%D0%B4%D0%B5%D1%88%D0%B5%D0%B2%D1%8B%D0%B9%20%D0%BF%D1%80%D0%B5%D0%B4%D0%BD%D0%B8%D0%B7%D0%BE%D0%BD%20%D0%B1%D0%B5%D0%B7%20%D1%80%D0%B5%D1%86%D0%B5%D0%BF%D1%82%D0%B0%3C%2Fa%3E%20%D0%B2%20%D0%A1%D0%A8%D0%90.%20%D0%92%D1%81%D0%B5%2C%20%D1%87%D1%82%D0%BE%20%D0%B2%D1%8B%20%D1%85%D0%BE%D1%82%D0%B8%D1%82%D0%B5%20%D0%B7%D0%BD%D0%B0%D1%82%D1%8C%20%D0%BE%20%D0%BD%D0%B0%D1%80%D0%BA%D0%BE%D1%82%D0%B8%D0%BA%D0%B0%D1%85.%20%D0%A7%D0%B8%D1%82%D0%B0%D0%B9%D1%82%D0%B5%20%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8E%20%D0%B7%D0%B4%D0%B5%D1%81%D1%8C.%20%5Burl%3Dhttps%3A%2F%2Faloeveraireland.ie%2Fproduct%20%2F%20vitolize-for-men%20%2F%20%23comment-69793%5D%D0%B2%D1%81%D0%B5%20%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8%20%D0%BE%20%D0%BB%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B0%D1%85.%5B%2Furl%5D%20%5Burl%3Dhttp%3A%2F%2Fadegadovinho.imigrantesbebidas.com.br%2F3-drinks-com-espumante-para-fazer-durante-a-quarentena%2F%23comment-75846%5D%20%D0%BD%D0%B0%20%D1%81%D0%B0%D0%BC%D0%BE%D0%BC%20%D0%B4%D0%B5%D0%BB%D0%B5%20%D1%82%D0%BE%2C%20%D1%87%D1%82%D0%BE%20%D0%B2%D1%8B%20%D1%85%D0%BE%D1%82%D0%B8%D1%82%D0%B5%20%D0%B7%D0%BD%D0%B0%D1%82%D1%8C%20%D0%BE%20%D0%BB%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B0%D1%85.%5B%2Furl%5D%20%5Burl%3Dhttps%3A%2F%2Falmohaimeed.net%2Fm%20%2F%20ar%20%2F%2065%5D%D0%92%D1%81%D0%B5%20%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8%20%D0%BE%20%D0%BB%D0%B5%D0%BA%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B0%D1%85.%5B%2Furl%5D%20eeb74f7>Everything news about medicines.</a> <a href=https://almohaimeed.net/m/ar/207>Actual about medicine.</a> ea28559

回复

Reply: FgvdAlado On 2021-01-10 04:04:07

sex ed <a href="http://canadapharmacyonlinestbh.com/#">drugstore near me</a> best drugstore bb cream

回复

Reply: FnrTW On 2021-01-10 11:06:11

Pills prescribing information. Cautions. <a href="https://prednisone4u.top">where to buy prednisone without a prescription</a> in Canada. Some information about drug. Read now. <a href=http://altalena.site/product/mutan-its-true/#comment-3421>All news about medicine.</a> <a href=https://alj.mg/prodotto/ravintsara-del-madagascar-20ml/#comment-51878>Some what you want to know about medicament.</a> <a href=http://japaninfo.jp/recuruitforum/?mod=document&uid=245#kboard-comments-245>Best about meds.</a> 91d0433

回复

Reply: Lokuisona On 2021-01-11 04:26:20

canadian pharmacy reviews <a href="http://canadian-pharmaciesthsh.com/#">drugs from canada</a> mail order pharmacy

回复

Reply: NllpAlado On 2021-01-11 11:35:54

canadian pharmacy generic viagra http://pharmacy-onlineasxs.com/ board of pharmacy

回复

Reply: Jtmfisona On 2021-01-11 12:24:58

texas state board of pharmacy <a href="http://canadadrugsonlinevbyh.com/#">rx plus pharmacy</a> drug rx

回复

Reply: Aqwsisona On 2021-01-11 13:25:11

best ed pills <a href="http://canadadrugslopl.com/#">canadian pharmacies</a> rx pharmacy coupons

回复

Reply: DavidFhl On 2021-01-11 20:23:08

Medication prescribing information. What side effects? <a href="https://remeron4u.top">buy remeron</a> in Canada Some about medication. Read information now. https://bebek.tv/video/4-6-aylik-bebek-beslenmesi-nasil-olmali/141 Some trends of medicine. http://kazgazeta.kz/news/52343 Some about meds. http://evibha.com/subservice/243 Actual news about medicines. 979f89c

回复

Reply: JlloApery On 2021-01-12 11:43:16

best drugstore highlighter <a href="http://canadianonline-pharmacydazc.com/#">erectile dysfunction</a> pharmacy near me

回复

Reply: Khthprot On 2021-01-13 15:36:52

best drugstore foundation <a href="http://onlinepharmacyzefb.com/#">best drug store mascara</a> peoples drug store

回复

Reply: FgnhAlado On 2021-01-14 08:16:23

viagra in kanada <a href="http://ltdviagragogo.com/#">viagra cheap</a> viagra online samples purchasing viagra online for cheap <a href="http://hdgenericviagraxk.com/#">viagra samples in canada</a> viagra with dapoxetine overnight delivery 365 pills viagra <a href="http://buygenericviarga.com/#">viagra price</a> clicks viagra price dapoxetine super viagra <a href="http://buyhdpillvia.com/#">cheap prices for viagra</a> viagra in ireland generic viagra for sale <a href="http://genericviagrix.com/#">bayviagra</a> superviagra force on line

回复

Reply: NlbxAlado On 2021-01-15 15:23:10

viagra gum <a href="http://viashoprx.com/#">viagracheap</a> viagra 100mg where to buy viagra sydney <a href="http://xviagarrx.com/#">brand viagra online</a> viagra buy online viagra espanol <a href="http://viagraviagria.com/#">buy viagra online without a prescription with overnight delivery</a> prices for viagra how to buy viagra melbourne <a href="http://asgenviagria.com/#">paypal viagra</a> order viagra with pay pal viagra alternatives australia <a href="http://viagengen.com/#">generic viagra mastercard accepted</a> buy viagra online for 50 cents a piece

回复

Reply: JvcxApery On 2021-01-16 11:12:15

herbal substitute for viagra paypal <a href="http://fmedrx.com/#">viagra minn</a> viagra espanol sildenafil citrate tablets viagra <a href="http://edabcrx.com/#">where to buy viagra in bangkok</a> viagra generic drugs viagra <a href="http://abcrxmed.com/#">viagra,levitra/free shipping</a> viagra cheap on line mastercard cheap generic viagra <a href="http://cialedrx.com/#">windsor viagra</a> viagra soft tabs viagra george south africa <a href="http://hitrxmenvia.com/#">purchase viagra</a> where can i buy generic viagra online

回复

Add Comment
©2014 lanewechat.lanecn.com , All rights reserved. Power By LaneWeChat 微信PHP开发框架.  京ICP备14005030号-1