Where do I get "Find Methods" for Loqate's Address Verification? - verification

I'm testing our Loqate's Adress Verification
https://www.loqate.com/resources/support/apis/Capture/Interactive/Retrieve/1/
The API is asking for a Key and Id as part of the required parameters, I have the Key, but for the Id it says in the description that it's a "Find Method" but I don't know where or which they are.
What are valid Id's I can put in there?
Anyone here have any experience with this?
Thanks.

The function, you mentioned, needs another function to unfold their whole functionality.
First of all you need to get some suggestion made by a search of a user e.g.
https://www.loqate.com/resources/support/apis/Capture/Interactive/Find/1.1/
This function will give you back suggestions. If the type is "address" you can use the given id of the respond to get the whole data of an address you found.
Hope this helps!

Related

How to add medianet with Prebid and Google Ad Manager

I am implementing Prebid.js. I am trying to work with Medianet. I keep getting an error response from the Medianet server: {"ext":{"nbr":"server_err_cfg"}}.
Support from Media.net hasn't responded yet. Any ideas on what can be the best solution to this? Also, do I need to have hb_pb for the key value in DFP (Google Ad Manager) or do I need to setup the line items with hb_pbmedianet?
Thanks.
You don't need separate key values for medianet (hb_pbmedianet) unless you are using sendAllBids configuration with Prebid.
Sounds like the IDs you are passing to the Media.net adapter are incorrect.
I would check them again again and be sure you are passing the right parameters to the ad unit. According to the Medianet docs, you need a cid and crid, both strings. Make sure these are 100% correct.

Exchange contact pager number property missing?

I'm trying to get the Pager Number from an Exchange contact. I'm getting the Exchange user from inside an Outlook addin and got access to the Global Address List.
The property should be available with this code, but the property tag doesn't exist it seems. I've found this ID many places, so I'm sure it's correct - or at least was... :)
.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3A21001F")
Found a long list of property tags here: https://msdn.microsoft.com/en-us/library/bb446002.aspx
When I'm using the tag for Pager/Beeper number 0x3A21001F the answer is that it doesn't exist.
If I use another like 0x3A06001F for Given name like this
propertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3A06001F") there is no error, but it returns an empty string. So it seems that some properties exist and some don't

Grails trouble saving object id

id is present in the params but does not save to the db. for example
[book.id:1, comments: good]
comments will save to db but book.id does not.
I need to figure out how to save params.book.id into the db column BOOK_ID that was created from the hasmany/belongsTo relationship.
By default value attribute of each element will be the result of a toString() call on each element. Setting it as optionKey allows the value to be a bean property of each element in the list.
Kindly change the select to
<g:form action="review">
<g:select name="book.id"
from="${item.Book.list()}"
value="${book?.id}"
/>
<g:textField name="bookreview" value="${params?.bookreview}" /><br>
kindly refer the below link
Grail example with optionkey
You have overwritten toString, therefore your books are always rendered by name and not id. If you remove your toString() method you will see the expected results.
If you want your select box work with the name, just add optionValue="name".
Well, it seems that I had misspelled a crucial parameter inside my domain. So the domain was expecting x and it was getting y. Thus the id was always null. It took me a while to spot it, and I was perplexed because I had previously successfully implemented ids in another project. Grails has some jira issues also that make one consider other possibilities, but this time it was my mistake.

What are the Aweber API Variables $account_id and $list_id?

You can check here:
https://labs.aweber.com/docs/code_samples/subs/create
The script to add a new subscriber to the list via api requires those two pieces info...only I cannot figure out for the life of me what those two variables are!! I've beaten through every little aspect of my Aweber Subscriber Account, AND my Aweber Labs account...and I can't find any reference to either of those variables anywhere. I've submitted some tickets to them, and haven't gotten any response yet.
Does anyone have any ideas here? I've tried my account names, my list names, to no avail!
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Okay, I've got it! You can get the values of both of these variables by dumping some other variables in the aweber api after making certain api calls.
get the account id first:
$account = $aweber->getAccount($accessKey, $accessSecret);
then vardump or print_r $account.
next we get the list id:
$account = $aweber->getAccount($accessKey, $accessSecret);
$list_url = 'https://api.aweber.com/1.0/accounts/<id>/lists';
$lists = $account->loadFromUrl($list_url);
then vardump or print_r $lists.
And you are all set! I'm so happy I figured this out, it freakin took long enough. Hopefully this saves some one a bit of time.
I too have agonized over finding the $list_ID, so went to deactivate the list, and create a new one, and "discovered" that if you hover over the Deactivate button, you get a url you can copy, and this gives both %account and %list Ids
https://www.aweber.com/users/lists/deactivate/$accountID/$lisID
like this....
https://www.aweber.com/users/lists/deactivate/123456/123456
Hopefully this will help make someone as it is a super easy solution
The proper answer is Anne Allen's one, but...
Check the return of the /accounts endpoint. It should return the same account id as you detected in the link, but I had cases they were different (strange, isn't it?). Use the account id returned by the /accounts endpoint and other endpoints to retrieve lists, subscribers, etc. will start to work. It's like if some accounts have two ids, one partially works and the other fully works.
Let me tell you how to get $list_id value... login into your AWeber account and then create a new list copy only integer value from list's name.
At first, login.
1) click Reports>Settings. Your account ID will be displayed in the box,example: ?id=XXXXX
2) click List Options>List Settings. There you will see the list ID under the name.
p.s. To add subscriber, you can use this - Automatically add into aweber list

How to get content from the Wikipedia API for a movie?

I tried to get the description of the movie "Your Highness" from the Wikipedia API but it gives me nothing.
http://en.wikipedia.org/w/api.php?format=xml&action=query&titles=your%20highness&prop=revisions&rvprop=content
When I google "Your Highness" wikipedia shows up as the third result, that's the page that I want the API to give me.
Also I just want the text of the description of the movie, no wiki-syntax mixed in or anything.
I was wrong before about the problem being a space - it looks like it was just capitalization. If we just change your URL to use Your%20Highness instead of your%20highness it works:
http://en.wikipedia.org/w/api.php?format=xml&action=query&titles=Your%20Highness&prop=revisions&rvprop=content
EDIT: While not all titles are title-cased (such as "The Name of the Rose") if you use the &redirects query parameter, it sometimes helps - it certainly helps in "the name of the rose" but not for "your highness" for some reason. Wouldn't like to say why, but it's probably worth more investigation...