-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ari,
all Method Names are based on https://github.com/gpodder/libmygpo-qt/blob/master/src/ApiRequest.h On 10/14/2011 03:55 PM, Ari Hannula (Nokia-MP/Oulu) wrote: > I was wondering how do I get the device id from the service when > doing the first sync? you want this function: /** * Returns the list of devices that belong to a user. * @param username Username of the targeted user * @return List of devices * */ DeviceListPtr listDevices( const QString& username ); > It says in the documentation (somewhere) that the service should > generate an unique device id for my client when uploading the feed > urls for the first time, but I don't seem to find any API that > supports such feature. Could someone give me an example. For creating a device you need to use: /** * Sets a new name and type for a device identified by a given ID * @param username Username of the account which owns the device * @param deviceId The id of the targeted device * @param caption The new name of the device * @param type The new type of the device * @return A Pointer to a QNetworkReply which receives network signals * */ QNetworkReply* renameDevice( const QString& username, const QString& deviceId, const QString& caption, Device::Type type ); See also: http://wiki.gpodder.org/wiki/Web_Services/API_2#Configuration If you use a deviceID that didn't exist before, you create a new Device. I think you got the supposed way (one "Device" for each physical Device/Software) right. Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6YegMACgkQlZvAMV/NgGI3ggCgs5CabUoZChfPRiXvoL0NuSbN Ge4AoIZU92kDzUbT5iGqfBQ5hAdiQgjH =6kP2 -----END PGP SIGNATURE----- _______________________________________________ gpodder-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/gpodder-devel
