inactive paste this post, we will be active in the Q & A to do the integration, we facilitate learning together.
CSDN community Q & A has been in full swing in the active participation of everyone, we will at the end of each of the activities, the essence of the posts in this Q & A integration, facilitate read, learn together and progress together.
************************ Order to give you a convenient reading environment, please do not reply to this post, thank you with * **********************
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
[Community Q & A Section 1] Liu Feng: Java-based micro-channel public platform
Time: 2014.4.9 --- 2014.4.16
active link: http://bbs.csdn.net/topics/390754523
Liufeng Bo-off: http://blog.csdn.net/lyq8479/
Q & A Digest:
Q: What are the main micro-channel public platform to do?
This question is a bit broad, I think it should be businesses, developers, operators who want nothing to do with micro-channel public platform, rather than what it can do. Micro-channel public platform is to build a bridge between enterprises and customers, to provide users with a more convenient communication services, by means of such a super micro-channel open platform that can effectively reduce the cost of development, operations, and so on all sides.
Q: Can Weak weak ask, micro-channel public platform refers to what is it? Is not that the micro-channel ah?
Micro-channel public platform is a subset of the micro-channel, and you believe in micro-client address book to see the "service number", "subscription number," these would have a relationship with the micro-channel public platform.
Q:? micro-channel access is free right
Micro-channel public account registration, are completely free to use, but if you want to get more privileges through micro-channel interface to authentication, you need to pay certification costs 300 yuan / times, the certification is valid for one year.
Q: white pass, micro-channel public platform is not to build their own server receives a user request, do reply on it ?
If the developer, using a development model is to have its own public network server, which is responsible for the micro-channel server and business systems to interact. On the one hand is responsible for receiving user requests coming from the micro-channel server, on the one hand and the business system through interactive processing a user request and reply messages. Of course, this is just the basic message request - response, micro-channel public platform there are many functional interface, to achieve more business scenarios.
Q: Liu Feng big God, I would like to ask, is there a way to bypass the micro-channel service numbers monthly limit. Theoretically speaking, if I use customer interface, so that when the user first and I communicate, within 48 hours I can take the initiative to send a message to the user rather than push operator replies, it will not be restricted. . . . . . Well, actually, I would like to ask, is this a 48-hour timer whenever the user send me information on the reset once it? When you send me, I from time to time (such as 12 hours) to the user via the customer service interface to reply to a message, this time a 48-hour timer will reset it? Users must reset message will it? I will not reply, then reset the timer? . . . . . Solving! ! ! To achieve the effect of the recent boss says ready to send, the people are not ready! ! ! ~
Customer Service 48 hours there is no way to bypass restrictions interfaces that do not have to pondering. Micro-channel platform is measured templates public message interface is able to achieve proactive message to the user at any time, but the content is fixed, you can look at.
48 hours is the last active user to interact with the public accounts prevail, pushed back 48 hours, which are between the customer can use the message interface to the user's active message.
Q: micro-channel web authorization! After obtaining the user's web openid authorization! After the user does not get the attention and concern acquired openid openid whether the same?
Web interface to be able to obtain authorization OAuth2.0 users openid, even if users can not get the attention. Before the user concerned, the concern with respect to a public openid account is unique, does not vary.
Q: I did not make the application of micro-channel platform, if you want to develop related applications, may I ask what the teacher Liu reserves basic knowledge and skills necessary to do so?
Just done a Web application development, master Java,. Net, PHP, Ruby, Node.js, Python and many other programming languages in one, very easy to use micro-channel public platform, plainly, micro-channel public platform application is a Web program.
If it is based on the Java language, you need to master JSP, Servlet, Javabean, JDBC, Tomcat and other basic knowledge of Java web development.
Q: I would like to associate numbers to the public their own micro-signal synchronization will Followers message forwarded to your own personal micro-signal, and then return the contents of the individual micro-channel can No reply to the public synchronized followers. In short, the number of followers and the general public to realize interactive communication via private micro signal. Seemingly passive micro-channel system can only achieve a reply message, the object when the object is not a public number to send a message previously sent message will be forwarded to refuse. I do not know which there is no god of good ideas.
If your account is public certification services through micro-channel number, can make use of high-level interface to the "customer service message interface" to achieve the functionality you described above.
Q: public number, if you use cookie and session. Or a similar effect.
Storage medium such as a database by the user to interact with the public account all saved messages, when a message is received, the user can determine the operation step by querying the database.
For example, the user sends a "continue", that is to continue to do it? Is to continue to tell jokes? Continue to answer? Continue to listen to music? This step is necessary depending on what the user did interact.
Q: white one, just apply for a public number, ask the teacher Liu, micro signal settings have tips to facilitate user operations? For example, the length, plus or minus underlined, in English or Pinyin, tangled?
Name of micro-channel public account can be repeated, but the Micro Signal is unique.
Recommended to use the account name of Microsoft, domain names, or other good memories, good as a micro signal input, if a signal in the same micro-hybrid English, numbers, underscores, case, which the user inputs the cost is too high.
Q: Liu teacher, how to ensure that micro-channel media resource does not fail on Tencent server. .
After uploading media resources, micro-channel server stores only three days, three days will be automatically deleted.
To long-term effective resources, developers can only control their own programming. After uploading multimedia files, micro-channel server returns media_id and created_at, created_at upload time. You can open a thread dedicated to determine the effectiveness of multimedia files have been uploaded, if fast failure, upload it again.
Q: Just learning one week, Liu brother to ask: how the user a number of public concern me automatically send a message?
This is similar to learning a programming language Hello world, whether it is in edit mode, or the development model, to achieve this are not difficult.
See more of my blog suggested, http://blog.csdn.net/lyq8479/article / details/8952173
Q: No. There is no similar public Weibo that a key concern of the function? Search Micro Signal attention a little tedious, sweeping the two-dimensional code, then they can not be two-dimensional code sent to the phone, such as what the circle of friends. . .
If the user point of view, he was particularly interested in a micro-channel public account, whether it is to sweep the two-dimensional code, or by name / micro signal search, it is no trouble, it went better than Android Market, App Store to download and install Province not know how many things.
Q: white one, would like to ask Liu teacher development mode to achieve an active push messages do every day, or that can only be achieved in Edit mode ? If we can achieve development mode coding, it should be how to achieve ah. .
No mass one day be able to subscribe to daily news, but only artificial Login micro-channel public platform to send, you can not achieve through the program.
Q: send customer service message interface, such privileges how to open it?
Customer message interface is one of the advanced interface, only through the micro-channel authentication service numbers have the permission.
If you are a subscription number, would not have considered, not the interface authority; If the service number, to apply for micro-channel certification after certification has been through.
Q: Liu teacher, I recently made a public platform for the development of micro-channel work, during which there are several questions to consult:
1, organizations can apply for a business code number service number?
2, No. achieve public bus queries directly from the site to search splicing, or directly to the existence of the information in the database to achieve?
3, I found some public numbers, Micro Signal every day to push some of the information concerned, these push information and mass are the same thing?
1, an enterprise is able to register a lot of material service number, the micro-channel and did not make any restrictions, only a restricted operator ID can only register two, as long as there is a sufficient number of identity can be.
Bus Interface 2 love to help, bus query realize I was called, is the interface to call, and then return the data to be processed, easy on the micro-channel presentation, there is no need to use the database also can be achieved.
3, you say to the followers push message, that is, micro-channel public platform mass messages, sending a subscription number every day.
Q: one account can only apply for a public issue? That an ID card? (For individual developers)
Whether you apply for subscription number or service number, as an individual or business, a card can only registered two public account.
Q: Liu teacher with my manager to leave it. Next, I am a person alone it. Fortunately, there are of you. . . Find books! Ssh framework of a problem with the way the micro-channel crm system how?
SSH is a very mature Java development framework, of course, no problem, although there is this kind of online assessment, but these are technically able to solve the key is people!
You can also consider Spring MVC + iBatis, many options.
Q: My question is a bit much, hope Liu brother eleven replies:
1.html5 not fully support the android platform, only partially supported. What support do not support what is not clear, can talk about?
2 Liu brother, I see you have a number of public functions to customize the menu, is how to apply for? Individuals are not allowed to apply?
3. Liu brother, your public inquiry numbers weather CMA interface is used, the current update of the interface is no longer whether there is a better interface can provide the best index of the air interface.
4.ouath certification is something safe? Why Sina, Taobao, Tencent are using this.
5 current mainstream micro-channel platform on the market are developed using php, why cause of this phenomenon?
1, on the one hand is the android, the degree of support for html5 browser on iOS itself, on the other hand micro-channel built-in browser support for html5's degree. To which support to, what does not, this is not a good clear answer. If you are not familiar with this piece itself, in the development, it is recommended the use of some mature frameworks, such as: jQuery mobile.
2, my account xiaoqrobot public service numbers, individuals can not apply for the service number. How it will be personal? If an individual subscription number, you can apply for microblogging certification can be obtained after certification by the menu.
3, yes, CMA interfaces unstable weather, say there is no clear public official. Consider using Baidu Maps API in the weather forecast vehicle networking interface.
4, OAuth2.0 is a standard set of user authorization and authentication protocols, these open platform (micro-blog, micro-channel, Baidu, etc.) are using the agreement to provide services.
5, the micro-channel public platform complexity is not high, mainly interface development and page development, complex business logic in existing business systems are basically achieved relatively more flexible php developers up fast. In addition, the use of micro-channel is the official php, php only provided Demo's, and these also have a certain relationship.
In fact, it does not matter what language to use, the key is whether you can utilize. There is no good or bad programming language, only not suitable.
Q:? autoresponders Why do not mp3 player
Reply message can not play music, music is likely to be a problem link, you can directly access the music link in the browser, see if you can play.
This article about a musical reply message, you can refer to my blog: http://blog.csdn .net/lyq8479/article/details/17232631
Q: teachers, whether talking about this book chapters on how to develop such an ordering of takeaway?
No book about ordering takeout case, there is surrounding the search, guessing games and intelligent chat robot three cases, the focus is to explain the use of micro-channel public platform API.
I believe that all the contents of the book can be mastered, the ability to complete the development of such applications takeaway ordering.
Q: For individual developers, offers a variety of search functions of a public platform there is nothing more attractive to users. So, if the user entry as a public platform to develop web app is the right path? Similar light application that? But they can not call a public platform for mobile phone interface, there will be the future trends in this area yet?
1, I think the public account is light micro-channel applications.
2, for you called "micro-channel public accounts as the entrance to develop web app", I believe that the development of micro-channel web pages is also part of the public accounts development.
3, the public can call the phone account is the album, camera, microphone and other equipment interfaces, can call letter how much depends entirely on the ability of micro open.
Q: Will Liu teacher, micro-channel to promote the new number which method? Positioning is about early childhood education.
First, you have a public account compelling content or services concerned are willing to let others use, which is a prerequisite.
In the early days, you can try the following ways to promote:
1) Do not just for publicity and propaganda, a lot of people entering into the QQ group, issued a two-dimensional code ran away, do you think someone will concern, and the effects of this useful?
If the conditions, you can write some quality articles on early childhood education, in my circle of friends, forums, blog sharing, users interested in the content of these naturally be concerned about your account.
2) adding some QQ group on early childhood education, and a group of friends often interactive chat, showing you focus on early childhood education, professional and timely manner to promote your account.
3) engage in some line activities, mothers of young children some open, interactive lessons.
If you think these promotional methods are difficult to implement, it may not be suitable for operators to promote you, or you just feel good in itself prospect of early childhood education, but this is not professional.
Q: Liu teacher, Hello! Micro-channel public platform reply message when the user can not push a form of news ah, similar to HTML tables?
In reply to a public platform for user messages can only reply that the provisions of five types of messages: text, images, audio, video and graphic messages.
For your needs, you might consider drawing table into a picture, or make web pages, pictures or graphic messages disguised through implementation.
Q: May I ask what it is doing to develop micro-channel, click the Customize button to jump to the preparation of a site on their own, how to set the page size to the phone above watching looks better?
About making phone screen adaptation of web pages to give you a few suggestions:
1) development framework, such as the use of jquery mobile phone page, the page itself is developed adaptive phone screen.
2) If you are using HTML/HTML5 develop their own page, to add meta viewport tag section of the page, as shown below:
3) the width of html elements try not to use absolute percentage.
Q: Liu teacher, even white, weak weak to ask, like access_token these certificates will expire, after a period of how to do, it will automatically call you,, Or how ah. . Do not laugh
Access_token interface to access the validity of the certificate is now 7200 seconds, which is two hours. Two hours later, access_token on the failure, so developers have to get access_token access_token again before failure.
You can open a single thread access_token maintain effectiveness, e.g., every 7150 seconds to obtain a access_token.
Q: Will Liu teacher numbers from micro-channel public dialogue interface, through the process of web link, if not authorized, is there a way to get to the user's openId? OpenId only authorized users access to interactive micro-channel public by the user or the number and pages?
If the page is not authorized by, only the developers themselves openid parameters passed via the web URL.
For example: click the Click the type of menu, reply graphic message, the user can attach openid URL parameter on graphic message reply.
then click the view menu how to determine the type of user, in addition to authorization?
view types of menus to jump to the page, in addition to OAuth2.0 web license, can not get access to the user's openid logo! ! !
Or is micro-channel authentication service number by type of menu to view the page, or is the general public first number by click type menu and then reply graphic web!
Q: The teacher asked you two questions!
1, such as the development of micro-channel platform needs to pay attention to public safety problem?
2, after the completion of the service application interfaces numbers can have all the features you book it? (Including the payment function!) Or that need to apply more advanced interface?
Development of any software system security issues can not be ignored, micro-channel public platform development is no exception. As a simple example, currently, interactive micro-channel message is transmitted in the clear public platform, the only non-sensitive data transmission, sensitive data should be considered to achieve by using HTTPS pages.
Q: how to develop this with java
?
There Java Web development infrastructure, relatively easy to use, you can learn from my blog in the serial tutorial.
http://blog.csdn.net/lyq8479
Q:? only java language development do
Micro-channel public platform development language that can be used a lot, as long as the language is to develop dynamic Web applications can be, for example:. Java, PHP, Net, Ruby, Node.js and so on.
Q: Liu teacher, get the url Content-Type has "audio / amr" This type of online search did not find a lot of this type of ah?
How would not it? Search in Baidu, Baidu Encyclopedia first is the explanation for AMR audio formats, has been very clear.
In the micro-channel public platform, it is necessary to note that:
1) When a user sends a voice message to the public account, we log in micro-channel public platform to download the voice files get is. Mp3 format, but the daemon is received. Amr format.
2) upload multimedia files by uploading an interface. Mp3 file when the file was downloaded also. Amr format.
Q: Master, hello, what is currently the secondary development of micro-channel technology, as far as I know there is: HTML5, Node.js, Sencha Touch, PhoneGap, MongoDB and Redis, etc. and so on, but I think some of the micro-channel commerce website, required the recruitment of technology PHP, MongoDB and Redis, etc.
(1) Will the technology for you to use now, what is it? There is the development direction of the development of micro-channel technology, what insights?
(2) who want to engage in micro-channel commercial development of the people, how to more quickly learn and master these technologies?
(3) your book, if there is a detailed development sample? The above techniques are involved?
In addition, the micro-channel secondary development and general development of what's different APP, which you are more optimistic about it?
Also, there is now Tencent micro-channel secondary development platform, Baidu has a light application development platform, Sina open microblogging platform, you think of these three core technologies common and what are? These three technologies are still figured?
Enterprises and developers will be based on their own circumstances, the use of different techniques to develop micro-channel public accounts, this is normal.
1, for the micro-channel public platform development, technical framework that I use frequently have Struts2, Spring, Hibernate, iBatis, Html5, jQuery mobile, MySQL / Oracle, etc.. For development, I do not comment, the demand for the actual project with the company / team / individual projects using technology as well as good for the technology, but do not go to the pursuit of what is good or bad.
2, fast learning to master micro-channel public platform development related technologies, need is the right approach + time + hands! You can find some training videos, the number to be intuitive and easier to understand absorbed.
3, "micro-channel public platform application development: methods, techniques and case," the book offers many examples, the last three chapters are also given to explain the development of three full cases, including: perimeter search, guessing game development and intelligent chat robot . This book focuses on the micro-channel public platform to explain the use of the API, the default view that the reader already has the required Java Web development technologies.
Q: Teacher Hello! Have a question to ask, is what I want to be a micro-channel marketing platform includes the following categories such as tolerance, membership management, redeem, micro-channel payments, and other functions. Concrete realization of ideas, ask the teacher to guide us. Thank you very much ......
This topic a little big, a lot of my friends have asked such questions yet introductory micro-channel public platform, the reality is you do not know how?
You said micro-channel marketing platform, in fact, similar to the Micro, fun in that kind of micro-channel hosting platform, any one of these platforms in separate functional modules carry out are not difficult to achieve. You do not know which part of the card on?
Q: Why do I feel that the micro-channel development and general JAVAWEB as it developed, what is not the same as you, in accordance with the rules of Tencent pass an XML, Tencent micro-channel users return information, we do say is this?
Said bluntly, is in the development of Java Web applications, just need to follow the API specification micro-channel public platform for data exchange.
If you say that again bluntly, not all applications are made to the data CRUD it?
Q: Liu teacher, hello, I heard micro-channel sealing download the browser address (do not know), is there any other way to the built-in micro-letters inside the browser to open the download address it, such as our company into the app graphic article addresses how to download it?
Since the micro-channel browser does not support downloading, you programmatically means there is no way to achieve. You can do is prompt the user to click on the top right of the button, open the link in your phone's browser.
Q: teacher, principal and ask how micro-channel customer service functions to achieve, wanted Merchants Bank credit card "labor service" function.
My idea is that the user sends the text to a specific micro-channel, micro-channel background records user opernid, and the content on other pages, of course, this page may have been open, and constantly refresh the staff to see content, available on the page Enter your reply to the service number, service number or pass on the corresponding operid users. In this case, the service number is not need to use high-level customer service interface function? Can you provide under this idea? Thank you
In fact, you have to realize micro-channel customer service manual has a very clear understanding, realization of ideas so that you said above, the need to use customer service message interface.
Q: do docking with the micro-channel is not just from the http request can? Still need to go through other protocols? Even paas cloud platform api similar pattern? If api or other agreement, then, is not an upgrade in the future micro-letter words, will have a greater impact on the access side of it?
This agreement clearly a little look, micro-channel data exchange between the public accounts and micro-channel server daemon is based on http protocol. Call menu interface or advanced interfaces are based on https protocol.
Reply:
Q: Liu Feng teacher, I was asked to make a reservation system can not by taking down the inside of the micro-channel ordering page above do fromusername spread to recognize that saved registered inside the reservation. How to achieve it?
Public class doing ordering numbers, there is no registration necessary, can be used as the user's unique identifier openid.
In single-user, fill the shipping address, you can order, shipping address associated with openid do.
Q: Before doing a novice JAVA WEB development, the development of a common platform for the micro-channel just beginning to understand, to learn where it
There are very easy to use Java web-based, multi-platform API to see micro-channel public documents, the other can also be serialized through my blog, micro-channel public platform development tutorial for learning. http://blog.csdn.net/lyq8479
Q: Liu teacher Hello, [message to the public when the number of active users when the micro-channel message data will be pushed to the developer, the developer at a time the (currently revised to 48 hours) you can call the customer service message interface], there is no way this 48 hours beyond it, to achieve the effect of leadership that always sent Chousi me! ! !
Any game has its rules, if you do not comply may be out there, so playing too boring.
If you want to send anywhere, anytime, without any restrictions, we recommend you use text messaging, micro-channel public account does not fit your needs.
48 hours limit customer interface is dead, no way to break through.
Like the kind of transaction CMB reminder bill reminder is to use a template message interface, the interface is still beta, there is no open applications. Although the template message can be sent at any time, but the content format is scheduled to die, the third party can only populate the data.
Q: I have been using discuz! Used to build a campus site, I do not know how the public and micro-channel number can open up to allow users on the micro-channel can post, see posts. May not be able to answer in a few words, but I hope to give directions, thank you!
discuz! There are mobile version, you build a site visit with discuz display is the mobile version directly on micro-channel.
The micro-channel users openid with discuz bind to account, not complicated.
Q: I need a custom menu to the URL parameter corresponding pass through get way
I think the way is to "continue to create menus"
Trouble 1: access_token have validity, this time can be created by saving the access_token to solve, within 7200 seconds using the same access_token, this trouble has recently been resolved
Trouble 2: Create a menu interface can only be called 1000 times a day, so, when a user visits a considerable amount of time, this is certainly over this time, is there a solution?
The effect of these troubles are resolved generated:
Different user clicks on the same menu to get the return value is different
The current compromise:
All the user clicks on the same menu, return a text message, text message contains a hyperlink with parameters, click on the link for the corresponding return value, but that the user experience is poor < br />
Do not try to pass the dynamic parameters menu view type, this is undesirable.
If your number is not public service through the micro-channel certification number, reply to messages via text or graphic click menu, then to the page, which is currently the best solution in disguise.
If you want to improve it, but also with the view menu, and want to identify the user, then go to apply for micro-channel authentication! ! !
Q: Liu teacher, have bought your book, but I'm not down the source code ah, the Web has been an error, and your book and blog there are not paid on the micro-channel knowledge, where the contents of this aspect is there ah?
In addition to describing the book preface to download the source code, there is also a QQ group number, you enter the group, sharing in the group can get the source code.
When the book was published micro-channel payment not yet open, micro-channel pay later I was ready to explain in the video.
Q: Can you access to micro-channel pay the subscription number, user number in the latter By signing the order, returned to the micro-channel pay user interfaces, allowing users to pay through a micro-channel payment orders? Liu teacher or suggestion in this regard it?
Fail to realize the premise of the application is to be paid by micro-channel micro-channel authentication service number.
Of course, do not rule out some of the subscription number is micro-channel payment privileges, but generally can not get this privilege, the conventional process can only be said above.
Q: peak brother, hello. I am using a robot, I ask for hierarchical user interaction is needed to store user information in databases? For example, the robot inside the guessing game is the presence of the user information and digital database, and then each time to find it? I have a program that requires the user or by the appropriate steps to restore operation can not cross, does not need to be stored in the database?
Yes, this message handling to be associated with a context, the need to store information on a user to interact with the public account.
Q: Liu Feng Teacher: No. Can we use a public platform through micro letter sent to others any information (that is, customer service messages sent to lift time limits) when to put open (your book is already in hand.) or known how to implement openid to send messages at any time, seeking answers!
So far, the micro-channel public platform is not open interfaces without any active message limit. You should think more about how to make good use of micro-channel has an open interface.
Consumer CMB reminder bill reminder is no time limit, using a template message interface, the interface is a closed beta, not open, you can look at.
Q: Due to the need, refer to the teacher's blog and the physical book to learn a bit of code, through the development mode (the developers have applied to the account), use code can be written Create a custom menu (see the background to create a successful return code), but do not see the subscription numbers written in the custom menu, I ask this question because the micro-channel authentication needs it? ? ? ?
To apply for a personal subscription number microblogging certification authority only custom menus, other micro-channel subscription number to apply for certification have menu access.
Your subscription number is common, there is no certification, there is no menu privileges, so there is no use to write code, find a way to authenticate it.
Q: Liu Feng teacher Hello, I am concerned about some of the micro-channel account, the account appears to micro-channel is to send a command, and the system returns some information in accordance with instructions, complex point
. .
. . ? ? ? ?
? ?
!
Thank you!
. . .
Reply:
Reply:
Reply:
Reply:
Reply:

Reply:
. . .
Reply:
Reply:
Reply:

Reply:
Reply:
No comments:
Post a Comment