API call getCampaignByNameData

Options
I'm accessing API data with the following function:

function convio_api_get5K_event_details($name, $fiscal_year, $all_convio_events) {
$convioAPI = convio_api_convio_api_login();

//returns a valid login object

$api_response = $convioAPI->call('CRTeamraiserAPI_getCampaignByNameData', array('name' => $name));

//this used to return an XML object containing event info. Now it returns a string "N;"


[etc. everything fails from here]

}


I've confirmed that the $name variable does contain the proper event name string. This used to work (not sure when the situation changed, I just noticed it today). Does anyone have an idea why this no longer works, or maybe better, would someone please try to use this call and see what you get?


Thank you!
Tagged:

Comments

  • In my first post, I said the login function returns a valid login object. When I serialize and output that object, I get:

    O:13:"ConvioOpenAPI":10:{s:4:"host";s:18:"secure2.convio.net";s:10:"short_name”;s:4:”xxxx”;s:7:”api_key”;s:7:”xxxxxxx”;s:1:”v”;s:3:”1.0”;s:15:"response_format";s:3:"php";s:10:"login_name”;s:8:”xxxxxxxx”;s:14:"login_password";s:12:”xxxxxxxxxxxx”;s:24:"ConvioOpenAPI__servlet";N;s:23:"ConvioOpenAPI__method";N;s:29:"ConvioOpenAPI__methodParams";a:0:{}}

    Notice ConvioOpenAPI__servlet and ConvioOpenAPI__method -- they each have an "N;" string at the end, the same as what is returned by my non-working call. That has to mean something, but I don't know what it is.
  • Jerry Podhajsky:

    In my first post, I said the login function returns a valid login object. When I serialize and output that object, I get:

    O:13:"ConvioOpenAPI":10:{s:4:"host";s:18:"secure2.convio.net";s:10:"short_name”;s:4:”xxxx”;s:7:”api_key”;s:7:”xxxxxxx”;s:1:”v”;s:3:”1.0”;s:15:"response_format";s:3:"php";s:10:"login_name”;s:8:”xxxxxxxx”;s:14:"login_password";s:12:”xxxxxxxxxxxx”;s:24:"ConvioOpenAPI__servlet";N;s:23:"ConvioOpenAPI__method";N;s:29:"ConvioOpenAPI__methodParams";a:0:{}}

    Notice ConvioOpenAPI__servlet and ConvioOpenAPI__method -- they each have an "N;" string at the end, the same as what is returned by my non-working call. That has to mean something, but I don't know what it is.

    I've never messed with web customizations at all. The only thing that comes to mind is the "N's" that tend to show up in Transact SQL statements. In that case, they denote that the following string is Unicode.

    https://stackoverflow.com/questions/10025032/what-is-the-meaning-of-the-prefix-n-in-t-sql-statements

Categories