Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8360045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:20:29+00:00 2026-06-09T11:20:29+00:00

On 01.08.12 Bing modified their search api to a Azure, How can I authenticate

  • 0

On 01.08.12 Bing modified their search api to a Azure, How can I authenticate in Objective-C to use the new bing search api from Azure?

My best guess is to learn from the provided PHP example in the migration word document!! http://go.microsoft.com/fwlink/?LinkID=248077 (Oh god, can’t you setup a web page!) or this Java Question – Bing Search API Azure Marketplace Authentication in Java

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:20:31+00:00Added an answer on June 9, 2026 at 11:20 am

    I’m using ASIHTTPRequest to authenticate with following code.

    NSString *queryString = [NSString stringWithFormat:@"'%@'", queryString];
    queryString = [queryString urlEncodeUsingEncoding:NSUTF8StringEncoding]; //You'll have to implement url encoding method, preferably in a string category file
    
    NSString *urlString = [NSString stringWithFormat:@"https://api.datamarket.azure.com/Data.ashx/Bing/Search/v1/Image?Query=%@&Market='en-US'&$top=50&$format=json", queryString];
    
    ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:urlString] ];
    [request setAuthenticationScheme:(NSString *)kCFHTTPAuthenticationSchemeBasic];
    [request setUsername:@"YOUR_KEY_HERE"];
    [request setPassword:@"YOUR_KEY_HERE"];
    [request setDelegate:self];
    [request startAsynchronous];
    

    Please note, no appID required. just instead pass your key as username and password. It is successfully getting the data.

    However, can’t really convert the data to NSString. tried every encoding but can’t get the string from the data. Initial googling says it’s UTF-8 encoded. But no success.

    For above code to work, you must add ASIHTTP framework.

    Another thing is, my guess is passing base64 encoded string with this format your_key:yourkey should also work with basic authentication.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Bing API to search for images by going the following call: http://api.bing.net/json.aspx?AppId=[my
On Bing I know I can add site:<somedomain> to include only results from that
I'm attempting to use the Bing Maps REST API to query the addresses of
I'm working with Bing Image Search API using jsonp with jquery $.ajax. I'm able
I'm trying to use Bing's REST api to geocode. But my 'y' value is
I am retriving Bing values from it's api through this link: http://api.bing.net/qson.aspx?Query=s&Market=en-us&JsonType=callback&JsonCallback= Now when
how can i use bing maps to draw a route line between two points.
Does bing.com use SQL Server Full Text Search feature? If yes, is there some
I want to use Bing Translator API to automatically translate some text in a
I'm trying to use Bing Maps 7.0 API with Lazy Loading, as this seem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.