本文介绍的内容源自:http://www.rogerdickeyjr.com/133/net-library-for-accessing-the-openx-api
I’ve started work on a .NET library for manipulating an instance of OpenX 2.6+.
There’s quite a bit that this XML-RPC interface provides to developers. As such, I’ve only got the minimum of create, retrieve, update & delete methods implemented. There are more advanced methods for retrieving statistics which I’ haven’t begun work on yet. This library requires XMLRPC.NET.
So far, here is what my class has implemented:
public OpenXApiV2(string endpointUrl, string username, string password)
public string SessionId
public void Logon()
public bool Logoff()
public int AddBanner(Banner newBanner)
public Banner GetBanner(int bannerId)
public bool ModifyBanner(Banner banner)
public bool DeleteBanner(int bannerId)
public Banner[] GetBannerListByCampaign(int campaignId)
public int AddZone(Zone newZone)
public Zone GetZone(int zoneId)
public bool ModifyZone(Zone zone)
public bool DeleteZone(int zoneId)
public Zone[] GetZoneListByPublisher(int pubId)
public int AddPublisher(Publisher newPub)
public Publisher GetPublisher(int pubId)
public bool ModifyPublisher(Publisher publisher)
public bool DeletePublisher(int pubId)
public Publisher[] GetPublishersByAgency(int agencyId)
public int AddCampaign(Campaign newCampaign)
public Campaign GetCampaign(int campaignId)
public bool ModifyCampaign(Campaign campaign)
public bool DeleteCampaign(int campaignId)
public Campaign[] GetCampaignListByAdvertiser(int advertiserId)
public int AddAgency(Agency newAgency)
public Agency GetAgency(int agencyId)
public bool ModifyAgency(Agency agency)
public bool DeleteAgency(int agencyId)
public Agency[] GetAgencyList()
public int AddAdvertiser(Advertiser newAdvertiser)
public Advertiser GetAdvertiser(int advertiserId)
public bool ModifyAdvertiser(Advertiser advertiser)
public bool DeleteAdvertiser(int advertiserId)
public Advertiser[] GetAdvertiserListByAgency(int agencyId)
public int AddChannel(Channel newChannel)
public Channel GetChannel(int channelId)
public bool ModifyChannel(Channel channel)
public bool DeleteChannel(int channelId)
public Channel[] GetChannelListByWebsite(int websiteId)
public Channel[] GetChannelListByAgency(int agencyId)
public int AddUser(User newUser)
public User GetUser(int userId)
public bool ModifyUser(User user)
public bool DeleteUser(int userId)
I’ll continue implementing the remaining methods as I have time.
Download OpenX.Net.
本地下载:
Openx .NET Library - .NET Library 访问Openx API - (2009-08-02)
马上下载