0

Hello,

I'm developing my plugin using C#. For example the plugin has URL:

http://FB/default.asp?pg=pgPlugin&ixPlugin=21&myParam=value

I want to parse this URL and get the value of myParam. For now I have: api.Request.Keys that gives me arrays of keys and the key number 2 is "myParam". How I can get the "value"?

Currently my code looks like:

String[] keys = api.Request.Keys;
String key = keys[2];

But I want something like:

String[] values = api.Request.Values;
String value = values[2];

How can I do it?

flag

1 Answer

2

The code you are looking for would look something like this:

var value = api.Request[key];

Note that there are restrictions on what query string parameters plugins have access to. More details can be found here: Passing data to Plugins from the client.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.