Ning: Tshawb Xyuas thiab Hom API Koj xav tau

Lub asthiv no kuv tau ua haujlwm nyob rau ib qhov project uas peb xav kom rub cov ncauj lus los ntawm thoob plaws Me Indiana (ua nrog Ning) rau hauv nplooj ntawv nruab nrab. Tus Indianapolis Fringe Festival yog tag nrho viav vias thiab Me dua Indiana xav pab txhawb kev tshwm sim.

Ning API tsis yog cov muaj kev teeb tsa, thiab cov ntaub ntawv thiab cov ntawv thov piv txwv yeej tsis txaus. Vim tias lub sijhawm tsis pub dhau lub sijhawm mus rau nplooj ntawv thiab khiav, Kuv yuav tsum tau txiav qee qhov kev txiav tawm luv luv dua li tsim kev daws teeb meem tsim nyog. Cov nplooj ntawv tam sim no ua haujlwm, tab sis nws nyuaj coded tsis muaj ntau yooj. Tej zaum yuav muaj qee qhov kev siv tau ntxiv ntawm cov ntsiab lus ib yam nkaus (piv txwv: kom ntseeg tau blog urls raug teeb tsa txawv ntawm cov rooj sab laj urls, thiab lwm yam).

Txoj kev Ning's API ua haujlwm yog tias nws zoo nkauj npaum li cas ib lub tshuab nug uas koj tuaj yeem tau txais cov txiaj ntsig koj xav tau hauv RSS noj. Peb thov kom txhua tus neeg uas blogs, pib sib tham, lossis uploads cov duab tshwj xeeb rau lawv cov ntsiab lus nrog indyfringe-2008Cov. Qhov no tso cai rau kuv los ua qhov chaw nyob rau kev cai noj uas khaws tag nrho cov ncauj lus (hauv kev txiav txim nqis qis los ntawm hnub luam tawm nrog rau URL nram qab no:

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

Nyob rau sab, Kuv mam li rho tawm thiab teeb tsa cov ntaub ntawv ntawm nplooj ntawv siv tus Chav Kawm Ntawv Magpie RSS rau PHP. Nyem rau zoom nyob rau hauv qhov chaws lossis koj tuaj yeem saib los yog rub tawm.

nqa nqa rss ningAPI thiab Format nws "dav =" 300 ″ qhov siab = "159 ″ chav =" aligncenter loj-nruab nrab wp-duab-2694 ″ />

Muaj qee qhov haujlwm tau nthuav ntawm no. Tsaug rau Tyler Ingram: XNUMX Lab tus kiv cua tos koj rau Webtalk! (los ntawm kuv lub tsev kawm ntawv theem siab tsev ntawm Vancouver!) uas tau pab nrog kho cov hnub tim raug ntawm Twitter.

Ib zaug ntxiv, nws tsis yog qhov chaws huv thiab nws tseem tsis tau tawg kom tsim nyog rau kev siv ceev - tab sis nws ua haujlwm. Replace Kuv hloov cov ntawv sib txuas yog li cov url raug qhia kom raug, Kuv tshem tawm cov HTML kab ntawv los ntawm cov ntsiab lus nrog, kuv teeb tsa hnub tim, thiab kuv txwv tus naj npawb ntawm cov lus tso tawm kom lub nplooj ntawv zoo li no:

Qee Cov Menyuam Yaus rau ntawm Babbling Banshee Zoo li nrog kuv saib ntawm Kev Ntseeg Zoo, Sidney muaj cov khoom nyiam thiab cov khoom tsis yog ... 8/24 11:55 AM

Qhov no API yog cov txiaj ntsig loj loj vim tias koj tuaj yeem sau npe yuav cov ntsiab lus thiab cov ncauj lus nyob hauv Ning networks uas tau hais tshwj xeeb rau, lossis koj tuaj yeem sib xyaw lwm lub vas sab sab nraud nrog Ning cov ntsiab lus. Kuv tsuas yog cia siab tias Ning ua haujlwm ntawm tus qauv ntawv thov thiab cov ntaub ntawv thiaj li muaj nuj nqis zoo li kuv tuaj yeem ua qhov no tsis tas yuav siv sijhawm ntau!