Keep WeChat highly active and keep WeChat active

Source: Internet
Author: User

Enable a highly active tool and an active tool

This is the public platform. To improve its activity, developers have added chat, jokes, weather queries, and many other functions to their public accounts. However, these functions are nothing special, to differentiate your public accounts from each other, You need to develop some creative functions.This article explains how to use the Turing robot api to implement "idiom Solitaire ".We will not talk much about the Turing robot. You can go to the official website:

Http://www.tuling123.com




Steps:

1. register the Turing robot api to obtain the interface key.
Turing robot Website: http://www.tuling123.com/
Email registration. Activate it.

2. encapsulate parameters, such as key, info, and userid.

/**

* EncapsulationHttpRequestedUrlParameters

*@ ReturnUrl

*/

PublicString formatUrl (String info ){

/** TuringApiInterface

* Key: register the Turing robot account in step 1. Replace it with 11111111.

* Info: The content sent to you. You can use the "idiom" to enter the idiom solitaire mode"

*Userid: Differentiate your own users, which can be usedOpenid*/

Info = "idiom Solitaire ";

String apiUrl = "http://www.tuling123.com/openapi/api? Key = 11111111 & info = "+ info +" & userid = ********";

ReturnApiUrl;

}

 

3. Compile the http get request Method

/**

* SendHttpGet request

*@ ParamParam request link and Parameters

*@ ReturnResult

*/

PublicString getProcess (Stringparam ){

/** SendHttpgetRequest */

HttpGet request =NewHttpGet (param );

String result = "";

Try{

HttpResponseresponse = HttpClients.CreateDefault(Cmd.exe cute (request );

If(Response. getStatusLine (). getStatusCode () = 200 ){

Result = EntityUtils.ToString(Response. getEntity ());

}

}Catch(ClientProtocolException e ){

E. printStackTrace ();

}Catch(IOException e ){

E. printStackTrace ();

}

ReturnResult;

}


4. Call the Turing robot Interface
/**

* Request the Turing robot interface and parse the result data

*@ ParamInfo request content

*/

PublicvoidGetResult (String info ){

/** GetUrl*/

String url = formatUrl (info );

/** SendHttpGet request to obtain the result of the Turing robot interface */

String result = getProcess (url );

/** Parse the result returned by the Turing robot interface */

Try{

JSONObject json =NewJSONObject (result );

// Idiom solitaire mode code = 100000

If(100000 = json. getInt ("code ")){

Result = json. getString ("text ");

}

}Catch(JSONException e ){

//TODOAuto-generated catch block

E. printStackTrace ();

}

}


5. After Entering the "idiom Solitaire" mode, call the interface cyclically to display the effect in the image.

 

To sum up, context Association is the most important in the implementation of the idiom solitaire function, which is also the power of the Turing robot interface. The userid parameter distinguishes different users and marks the association between the front and back semantics of the same user. Therefore, to implement the idiom solitaire function, you must pass the userid.



There are ways to keep thinking highly active for a long time

Active thinking, responsiveness, and intelligent brain, apart from innate factors, it is very important to nurse the day after tomorrow and use the brain scientifically. Excessive brain usage, dark blood consumption, can cause deficiency of the five organs, the brain is not raised and the memory is reduced, the response is slow; the two sides of the heart and spleen can lead to heart palpitations, insomnia, soft limb fatigue, multi-dream; insufficient liver and kidney can cause dizziness and many dreams. Supplement the diet through supplement liver and kidney, adjust the heart and spleen, so that the blood and blood are abundant, kidney essence adequate, so as to achieve a brain puzzle, promote thinking, enhance memory, delay the brain decline purpose.

Pig Decoction

Ingredients: 1 pig brain, 15 grams of pig spinal cord, 10 grams of wolfberry, and a proper amount of seasoning.

Method: Wash pig, put it in a bowl, and add it into medlar, salt, monosodium glutamate, cooking wine, soy sauce, etc.

Function: kidney and brain.

Braised pig with ears

Ingredients: white fungus, 10 grams of black fungus, 1 pig brain, right amount of spices.

Method: black fungus white fungus hair wash, pig brain wash the same set in the pot, add chicken soup right amount, simhei simmer to rotten, add salt, monosodium glutamate, cooking wine, pepper powder and other flavors, then cook one or two boiling dishes.

Function: Make up your mind.

Walnut and longan chicken Diced

Ingredients: 10 grams of walnut meat, 250 grams of chicken, right amount of spices.

Method: Wash and diced chicken, mix well with cooking wine, starch, soy sauce, hot oil in the pot after the ginger and scallions, stir-fry the color of chicken Ding, then go down to walnut kernels and meat, scallions, ginger, pepper, etc. Stir-fry until it is ripe, add salt and monosodium glutamate for serving.

Function: invigorating the kidney and invigorating the spleen, nourishing the nerves.

Pig head soup

Ingredients: 10 grams of longan, 100 grams of pig spinal cord, 1 fish head, seasoning amount.

Method: wash the pig spinal cords and fish heads, boil the water in the same pot, and then drop the Longan and scallions, ginger, pepper, garlic, cooking wine, rice vinegar, etc, season with salt and monosodium glutamate, And Then boil the slogan, coriander, or boiling water

High protein

For example, fish are rich in many kinds of amino acids,
Milk is rich in calcium, high-quality protein,
Walnut is the best shape-filling product,
Zhima is rich in unsaturated fatty acids,
Apple is rich in selenium,
Egg,
Beef Muscle amino acid is higher than any other food
Pig Blood helps with detoxification and nutrition
Bean products, Qi, Qi, and tonic, plant protein
In addition, you need to eat more vegetables and fruits to detoxify your face and keep your body alkaline.
The most important thing is balanced nutrition.

Appendix: 12 foods that can enhance memory

There are hundreds of millions of nerve cells in the brain of the National People's Congress that are constantly carrying out heavy activities. Scientific research has confirmed that diet is not only a necessity for life, it also plays a very important role in the normal operation of the brain. Some foods help to develop people's intelligence, make people's thinking more agile, more concentrated, and even stimulate people's creativity and imagination. The following types of food are very beneficial to the brain. Mental workers and students can choose food regularly.

1. Milk. Milk is a perfect nutrition. It is rich in protein, calcium, and essential amino acids in the brain. Calcium in milk is the most easily absorbed by humans and is an essential component in brain metabolism. In addition, it also contains vitamin B1 and other elements that are very beneficial to nerve cells. A cup of hot milk before going to bed can help you fall asleep if your brain is too high and insomnia occurs.

2. Eggs. The brain activity function and memory strength are closely related to the body of the brain. Experiments have proved that the wonderful thing about chicken eating is that when the yolk contains a lot of lecithin, it can produce a lot of acetyl cart, and the blood will soon reach the brain tissue, which can enhance the memory, foreign studies have confirmed that eating 1 or 2 eggs a day can provide enough cardiol to protect the brain and improve memory.

3. Fish. They can provide high-quality protein and calcium to the brain. Most of the Fatty Acids Contained in freshwater fish are unsaturated fatty acids, which do not cause vascular hardening and have no harm to cerebral arteries, it can also protect cerebrovascular diseases and promote brain cell activity.

4. MSG. The main component of MSG is sodium glutamate, which can be converted to glutamate under the action of stomach acid. Glutamate is the only amino acid involved in Brain Metabolism. It can promote intellectual development and maintain and improve brain functions. It often consumes MSG, which helps improve mental insufficiency and memory impairment. Because MSG can increase the amount of acetyl Carn in the brain, it also has a certain effect on neurasthenia.

5. Peanuts. Peanut is rich in lecithin and cerebral lecithin, which is an important substance required by the nervous system. It can delay functional decline of the brain, inhibit platelet aggregation, and prevent cerebral thrombosis. Experiments have confirmed that regular peanuts can improve blood circulation and enhance... the remaining full text>

How does the platform maintain user activity?

1. The column setting is not only for enterprises. When you want to switch to the public platform, you must consider the "column" issue. In fact, you must consider what the target group wants to see, to make it easier for fans to read and choose, it is easy to see and the user experience is better. Generally, when setting a column, an enterprise will set it in terms of products, qualifications, awards, and contact information. We need to focus on how to let fans see these topics. In addition to the daily mass push, we should also consider how fans can see these topics, that is, setting keywords. That is to say, fans can see what they see. For example, if fans say "asset quality", they can see the enterprise qualification content page. In short, the finer the information, the better.

2. The content of the topic can include text, images, voice, video, and music. You can use a single text message to send multiple text messages. In a word: if fans see how they can depend on us, we will do it. There are also a lot of skills in the content of the topic. For example, some companies use beautiful girls to report related information to fans every day. For example, some enterprises organize their own public platforms into a media form. In short, enterprises can fully explore their own planning capabilities and do what they want to do. They must be personalized, differentiated, and satisfied by fans.

3. the functions provided must meet user requirements. We have mentioned many functional topics. Enterprises must fully consider the needs of target groups. For example, the public platforms of schools have translation functions, the manufacturing industry has the stock query function. As mentioned above, we will not repeat it here. However, for enterprises that want to build their own brands, they also need to set personalized features closely related to themselves, such as the balance query function of China Merchants Bank and the boarding pass function of China Southern Airlines, it has a huge effect on the promotion of its own brand.

4. planning activities and topics. The interaction with fans is a private one-to-one port. Therefore, when marketing, enterprises must communicate with you, we must avoid the "I am with you" and "I am with you" approach. We must make fans feel that you are talking to them separately, friends, and loved ones. This premise must be taken into account when planning activities and setting topics. For example, the topic we set during the Spring Festival is a group problem: Are you setting up fireworks during the Spring Festival? As a result, 60% of the fans participated in the discussion on this topic. Just imagine how it could be so effective to do theme activities on other platforms ?! This is also true for planning activities. For example, if a company will tell its fans that I will recommend it to your friends and I will give you the cash coupons of our company, it seems like chatting with friends, the results are very good! The content of this article comes from mobile payment in the late Ming century.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.