Git Product home page Git Product logo

android-market-api-net's People

Contributors

maximn avatar yrara avatar

android-market-api-net's Issues

400 Bad Request

I am always getting 400 Bad Request no meter what i'm doing??
Help anyone? 

Original issue reported on code.google.com by [email protected] on 5 Dec 2011 at 2:01

exception on Serializer.Deserialize<Response>(stream); in MarketSession.cs

What steps will reproduce the problem?
1. Download the current source
2. Run the tests - Get categories


What is the expected output? What do you see instead?
Invalid wire-type; this usually means you have over-written a file without 
truncating or setting the length; see http://stackoverflow.com/q/2152978/23354

This exception is seen always. 

What version of the product are you using? On what operating system?
Current svn source. Windows 7. NET4




Original issue reported on code.google.com by [email protected] on 25 May 2012 at 8:58

all ways return 400 Bad Request..

I'm try to use android-market-api-net. (today first try..)

this is my code..

            MarketSession session = new MarketSession();
            session.Login( "email", "password" );

            String query = "maps";
            AppsRequest appsRequest = new AppsRequest();
            appsRequest.Query = query;
            appsRequest.StartIndex = 1;
            appsRequest.EntriesCount = 10;
            appsRequest.WithExtendedInfo = true;

            // error!!! all ways return 400 bad request..
            AppsResponse response = session.Get( appsRequest );

what is my fault?

Original issue reported on code.google.com by [email protected] on 26 Jul 2011 at 12:27

  • Merged into: #3

GetAppScreenshot problem. can anyone get it successfully?

for (int i = 0; i < app.Extendedinfo.ScreenshotsCount; i++)
            {
                GetImageRequest request = new GetImageRequest
                {
                    AppId = app.Id,
                    ImageId = i.ToString(),
                    ImageUsage = GetImageRequest.AppImageUsage.Screenshot
                };

                try
                {
                    GetImageResponse imgResponse = session.Get(request);

                    if (null != imgResponse)
                    {
                        using (MemoryStream ms = new MemoryStream(imgResponse.ImageData))
                        {
                            Bitmap img = (Bitmap)Image.FromStream(ms);
                            string format = GetImageFormat(img);
                            string fileName = string.Format("{0}_{1}.{2}", System.Guid.NewGuid().ToString("N"), i.ToString(), format);
                            string filePath = string.Format("{0}{1}", realPathPrefix, fileName);
                            img.Save(filePath);
                        }
                    }
                }
                catch (WebException ex)
                {
                    LogHelper.WriteException(ex.Message, ex);
                }
            }


i can't get Screenshot,error code 400 happens, help!

Original issue reported on code.google.com by [email protected] on 6 Jan 2011 at 9:35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.