Ning: Kupeza ndi Mtundu API Mukufuna

Sabata ino ndimagwira ntchito yomwe timafuna kutulutsa zochokera konsekonse Kukucheperako Indiana (yomangidwa ndi Ning) kulowa patsamba lapakati. Pulogalamu ya Phwando la Indianapolis Fringe ikusintha kwathunthu ndipo Indiana Yocheperako amafuna kuthandiza kulimbikitsa mwambowu.

API ya Ning siyabwino kwambiri, ndipo zikalata ndi mitundu yazoyeserera zilibe. Chifukwa chakuchepa kwakanthawi kuti tsambalo ligwire ntchito, ndimayenera kuchita zocheperako m'malo mongopeza yankho loyenera. Tsambali likugwira ntchito, koma ndilosavuta popanda kusinthasintha. Pakhoza kukhala kutsimikizika kowonjezera kwazomwe zilipo (mwachitsanzo: kuwonetsetsa kuti maulalo amabulogu amapangika mosiyana ndi ma URL a pamisonkhano, ndi zina zambiri).

Momwe Ning's API Ntchito ndikuti ndi injini yofunsa komwe mungapeze zotsatira zomwe mukufuna mu RSS feed. Tidapempha kuti aliyense amene amakhala mabulogu, ayambe kukambirana, kapena amaika zithunzi mwapadera kuti alembe nawo indyfringe-2008. Izi zimandilola kuti ndikhale ndi adilesi yapa feed yomwe imapeza zonse zomwe zili (kutsika mpaka tsiku lofalitsidwa ndi ulalo wotsatira:

http://smallerindiana.ning.com
/xn/atom/1.0/tag(value=%27indyfringe-2008%27)/content?order=published@D

Patsambali, ndimachotsa ndikusanja zomwe zili patsamba ndikugwiritsa ntchito Maphunziro a Magpie RSS ya PHP. Dinani kuti muwonetsere pa kachidindo kapena mungathe onani kapena kukopera.

katenge rss ningAPI ndipo pangani mawonekedwe "width =" 300 "kutalika =" 159 "class =" aligncenter size-medium wp-image-2694 ″ />

Pali zina zosangalatsa pano. Chifukwa cha Tyler Ingram (kuchokera kunyumba yanga yasekondale ya Vancouver!) omwe adathandizira pakupanga madeti molondola kudzera pa Twitter.

Apanso, siyikhodi yoyera kwambiri komanso siyidasweka moyenera kuti igwiritsidwe ntchito mwachangu - koma imagwira ntchito. 🙂 Ndimalowetsa maulalo kuti maulalo azitsogoleredwa moyenera, ndimachotsa ma tags aliwonse a HTML pazomwe zidaphatikizidwazo, ndimapanga tsikulo, ndikuchepetsa kuchuluka kwamawu omwe awonetsedwa kuti zotsatira za tsambali ziziwoneka motere:

Ena mwa Babble pa Babbling Banshee Monga momwe ndalemba ndemanga ya Good Grief, Sidney panali zokopa zomwe sizingakonde kapena ayi ... 8/24 11:55 AM

izi API Ndizopindulitsa kwambiri chifukwa mutha kulembetsa ku zomwe zili ndi mitu mu ma neti a Ning omwe amadziwika bwino, kapena mutha kuphatikiza tsamba lakunja ndi zomwe zili mu Ning. Ndikungoyembekeza kuti Ning adzagwira ntchito pazitsanzo ndi zolembedwa kotero kuti anthu onga ine atha kuchita izi popanda kugwiritsa ntchito nthawi yochuluka!

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.